branch: master
commit ffa2d8f9db6711b93939e28b2f93832e446b9080
Author: Basil L. Contovounesios <[email protected]>
Commit: Oleh Krehel <[email protected]>
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
ivy-sort-max-size.
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