branch: master
commit 38ecfe7d21730f56b9e0c71b26a5aab8f03d922f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-unicode-char): Show cands in order
Fixes #1003
---
counsel.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/counsel.el b/counsel.el
index a693a91..e8e6d8c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -366,11 +366,12 @@ Update the minibuffer with the amount of lines collected
every
(setq ivy-completion-beg (point))
(setq ivy-completion-end (point))
(ivy-read "Unicode name: "
- (mapcar (lambda (x)
- (propertize
- (format "%06X % -60s%c" (cdr x) (car x) (cdr x))
- 'result (cdr x)))
- (ucs-names))
+ (nreverse
+ (mapcar (lambda (x)
+ (propertize
+ (format "%06X % -60s%c" (cdr x) (car x) (cdr x))
+ 'result (cdr x)))
+ (ucs-names)))
:action (lambda (char)
(with-ivy-window
(delete-region ivy-completion-beg ivy-completion-end)