branch: master
commit 1870f41275c213017c4b0d68c89637399004cf0a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el: Fix counsel-command-history
    
    Re #826
---
 counsel.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/counsel.el b/counsel.el
index 6290ba7..8998314 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3053,10 +3053,7 @@ candidate."
 (defun counsel-command-history ()
   "Show the history of commands."
   (interactive)
-  (ivy-read "%d Command: "
-            (mapcar (lambda (x)
-                        (format "%s" x))
-                    command-history)
+  (ivy-read "%d Command: " (mapcar #'prin1-to-string command-history)
           :require-match t
           :action #'counsel-command-history-action-eval
           :caller 'counsel-command-history))

Reply via email to