From 885b86f6733fd70f42c32dd7791d3447f93db990 Mon Sep 17 00:00:00 2001 From: Pablo Stafforini Date: Tue, 26 Dec 2023 14:53:51 +0000 Subject: [PATCH] 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 --- citar-citeproc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citar-citeproc.el b/citar-citeproc.el index a78b202b..db6bfe1c 100644 --- a/citar-citeproc.el +++ b/citar-citeproc.el @@ -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)))