emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master ba49407 53/54: counsel.el (counsel-ag-function): Improve f


From: Oleh Krehel
Subject: [elpa] master ba49407 53/54: counsel.el (counsel-ag-function): Improve for fancy faces
Date: Tue, 29 Sep 2015 14:10:11 +0000

branch: master
commit ba49407c5b4c719dd5dcc298c260513abf0c70df
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-ag-function): Improve for fancy faces
    
    Set `ivy--old-re' in order for fancy `ivy-display-style' to work.
---
 counsel.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/counsel.el b/counsel.el
index 7332e89..ac04e67 100644
--- a/counsel.el
+++ b/counsel.el
@@ -986,7 +986,9 @@ Usable with `ivy-resume', `ivy-next-line-and-call' and
   "Grep in the current directory for STRING."
   (if (< (length string) 3)
       (counsel-more-chars 3)
-    (let ((regex (counsel-unquote-regex-parens (ivy--regex string))))
+    (let ((regex (counsel-unquote-regex-parens
+                  (setq ivy--old-re
+                        (ivy--regex string)))))
       (counsel--async-command
        (format "ag --noheading --nocolor %S" regex))
       nil)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]