Commit 4716dbdd authored by Kyle Meyer's avatar Kyle Meyer

completion: Override ivy's default alphabetical sorting

We pre-sort the collection, so we want completion to respect that
order.  Ivy no longer does so as of swiper's
3689c8f (ivy.el (ivy--sort-function): Handle fallback, 2018-05-10).
parent 60d381c6
......@@ -439,9 +439,10 @@ acts similarly to `completing-read', except for the following:
(setq choices (magit--completion-table choices)))
(cl-letf (((symbol-function 'completion-pcm--all-completions)
#'magit-completion-pcm--all-completions))
(completing-read prompt choices
predicate require-match
initial-input hist def)))
(let ((ivy-sort-functions-alist nil))
(completing-read prompt choices
predicate require-match
initial-input hist def))))
(defvar helm-completion-in-region-default-sort-fn)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment