Skip to content

Commit 885b86f

Browse files
authored
fix(citeproc): correctly select style when 1
* 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
1 parent 572b7b6 commit 885b86f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

citar-citeproc.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ accepted.")
8383
files))
8484
(style
8585
(if (= (length list) 1)
86-
(car list)
87-
(completing-read "Select CSL style file: " list nil t)))
86+
(caar list)
87+
(completing-read "Select CSL style: " list nil t)))
8888
(file (cdr (assoc style list))))
8989
(setq citar-citeproc-csl-style file)))
9090

0 commit comments

Comments
 (0)