Skip to content

Commit

Permalink
fixed --get-candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarcus committed Feb 27, 2021
1 parent 54b8b4b commit 0ebfea9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bibtex-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,9 @@ for string replacement."
collect
(cons
;; Here use one string for display, and the other for search.
;; TODO not working correctly
(concat(car (candidate)))
(propertize (bibtex-completion-format-entry candidate) 'display)))
(cdr (assoc "=key=" candidate)))
(propertize
(car candidate) 'display (bibtex-completion-format-entry candidate (1- (frame-width))))
(cdr (assoc "=key=" candidate)))))

(defun bibtex-completion-candidates ()
"Read the BibTeX files and return a list of conses, one for each entry.
Expand Down

0 comments on commit 0ebfea9

Please sign in to comment.