[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master ffa2d8f 112/399: counsel.el (counsel-unicode-char): Fix so

From: Oleh Krehel
Subject: [elpa] master ffa2d8f 112/399: counsel.el (counsel-unicode-char): Fix sorting
Date: Sat, 20 Jul 2019 14:57:00 -0400 (EDT)

branch: master
commit ffa2d8f9db6711b93939e28b2f93832e446b9080
Author: Basil L. Contovounesios <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-unicode-char): Fix sorting
    ivy--sort-function may return nil, but doing this is redundant
    anyway, since counsel--unicode-table is sorted and cached lazily,
    and ivy-read later obeys ivy-sort-functions-alist and
    Fixes #1988
 counsel.el | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/counsel.el b/counsel.el
index 8ef3906..78c34cd 100644
--- a/counsel.el
+++ b/counsel.el
@@ -4473,11 +4473,6 @@ COUNT defaults to 1."
   (interactive "p")
   (setq ivy-completion-beg (point))
   (setq ivy-completion-end (point))
-  (unless (listp counsel--unicode-table)
-    (setq counsel--unicode-table
-          (sort
-           (all-completions "" counsel--unicode-table)
-           (ivy--sort-function 'counsel-unicode-char))))
   (ivy-read "Unicode name: " counsel--unicode-table
             :history 'counsel-unicode-char-history
             :sort t

reply via email to

[Prev in Thread] Current Thread [Next in Thread]