Skip to content

Commit

Permalink
More readable idiom.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmalsburg committed Nov 15, 2015
1 parent 04d494a commit 6553324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-bibtex.el
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ matching PDFs for an entry, the first is opened."
(defun helm-bibtex-format-citation-cite (keys)
"Formatter for LaTeX citation commands. Prompts for the command and
for arguments if the commands can take any."
(let* ((initial (and helm-bibtex-cite-default-as-initial-input helm-bibtex-cite-default-command))
(default (and (not helm-bibtex-cite-default-as-initial-input) helm-bibtex-cite-default-command))
(let* ((initial (when helm-bibtex-cite-default-as-initial-input helm-bibtex-cite-default-command))
(default (unless helm-bibtex-cite-default-as-initial-input helm-bibtex-cite-default-command))
(default-info (if default (format " (default \"%s\")" default) ""))
(cite-command (completing-read
(format "Cite command%s: " default-info)
Expand Down

0 comments on commit 6553324

Please sign in to comment.