]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy--format-minibuffer-line): Update
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 22 Apr 2016 18:44:00 +0000 (20:44 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 22 Apr 2016 18:44:00 +0000 (20:44 +0200)
Add "counsel-ag counsel-pt" to the special highlight behavior.

Re #483

ivy.el

diff --git a/ivy.el b/ivy.el
index eee341ccff4fe9eee1c67c4147ebbe83a970bef3..f664e5dab1a44f2dbf03c170a70ed9c0846439f8 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -2440,7 +2440,8 @@ SEPARATOR is used to join the candidates."
 
 (defun ivy--format-minibuffer-line (str)
   (let ((start
-         (if (and (memq (ivy-state-caller ivy-last) '(counsel-git-grep))
+         (if (and (memq (ivy-state-caller ivy-last)
+                        '(counsel-git-grep counsel-ag counsel-pt))
                   (string-match "^[^:]+:[^:]+:" str))
              (match-end 0)
            0))