branch: master
commit 9151862e1dd071edf31ff28b54848db9691779bb
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--format-minibuffer-line): Fix for ivy-display-style nil
Fixes #828
---
ivy.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 5589da1..85d1c4a 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2846,8 +2846,9 @@ SEPARATOR is used to join the candidates."
str)
(defun ivy--format-minibuffer-line (str)
- (when (eq ivy-display-style 'fancy)
- (funcall ivy--highlight-function (copy-sequence str))))
+ (if (eq ivy-display-style 'fancy)
+ (funcall ivy--highlight-function (copy-sequence str))
+ (copy-sequence str)))
(ivy-set-display-transformer
'counsel-find-file 'ivy-read-file-transformer)