consult: Fix evil-collection-consult-mark (#706)

Breaking change to consult--location candidate was introduced with
consult 4be224fb1cfa9b983dca84408720a71d112b1e2c. Fixes #703.
This commit is contained in:
northgaard 2023-02-13 18:07:20 +01:00 committed by GitHub
parent a207d0e533
commit af7d7d7977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -87,8 +87,10 @@ as defined in `evil-collection-consult--evil-mark-ring'."
(consult--in-range-p pos))
(goto-char pos)
(push (consult--location-candidate
(format "%s: %s" (char-to-string char) (consult--line-with-cursor marker)) marker
(line-number-at-pos pos consult-line-numbers-widen))
(format "%s: %s" (char-to-string char) (consult--line-with-cursor marker))
marker
(line-number-at-pos pos consult-line-numbers-widen)
marker)
candidates)))))
(nreverse (delete-dups candidates))))