branch: master
commit f4ec7897ed9e81096fb178a19644049c6b359de2
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-set-variable): Fix 2nd preselect
Fixes #544
---
counsel.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 83eef98..c62c666 100644
--- a/counsel.el
+++ b/counsel.el
@@ -540,7 +540,7 @@ input corresponding to the chosen variable."
(t nil)))
(let ((res (ivy-read (format "Set (%S): " sym)
cands
- :preselect (symbol-name (symbol-value sym)))))
+ :preselect (prin1-to-string (symbol-value sym)))))
(when res
(setq res
(if (assoc res cands)