]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-completing-read): Use the "t" key of ivy-sort-functions-alist
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 26 Mar 2016 13:30:05 +0000 (14:30 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 26 Mar 2016 13:30:05 +0000 (14:30 +0100)
Fixes #449

ivy.el

diff --git a/ivy.el b/ivy.el
index d082c8e0599a689a357e92e57e228e077174fe80..f11543a96e337e5868200d78e62dd002d1e993c4 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -1529,7 +1529,8 @@ INHERIT-INPUT-METHOD is currently ignored."
               :history history
               :keymap nil
               :sort
-              (let ((sort (assoc this-command ivy-sort-functions-alist)))
+              (let ((sort (or (assoc this-command ivy-sort-functions-alist)
+                              (assoc t ivy-sort-functions-alist))))
                 (if sort
                     (cdr sort)
                   t)))))