Skip to content

Commit

Permalink
fix(citeproc): correctly select style when 1
Browse files Browse the repository at this point in the history
* Fix bug in citar-citeproc-select-csl-style

When only one in the list of styles, need to use caar rather than car.

* Improve citar-citeproc-select-csl-style docstring
  • Loading branch information
benthamite authored Dec 26, 2023
1 parent 572b7b6 commit 885b86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions citar-citeproc.el
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ accepted.")
files))
(style
(if (= (length list) 1)
(car list)
(completing-read "Select CSL style file: " list nil t)))
(caar list)
(completing-read "Select CSL style: " list nil t)))
(file (cdr (assoc style list))))
(setq citar-citeproc-csl-style file)))

Expand Down

0 comments on commit 885b86f

Please sign in to comment.