[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ab795d0 265/272: Don't highlight that match in the file na
From: |
Oleh Krehel |
Subject: |
[elpa] master ab795d0 265/272: Don't highlight that match in the file name part |
Date: |
Mon, 25 Apr 2016 10:13:29 +0000 |
branch: master
commit ab795d0dc0bceaf2a1fa10cbdd5e3bc49c9d814d
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Don't highlight that match in the file name part
ivy.el (ivy--format-minibuffer-line): Fix for `counsel-git-grep'.
Fixes #483
---
ivy.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 61103b2..8e12408 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2438,7 +2438,11 @@ SEPARATOR is used to join the candidates."
start end 'face face str)))
(defun ivy--format-minibuffer-line (str)
- (let ((start 0)
+ (let ((start
+ (if (and (memq (ivy-state-caller ivy-last) '(counsel-git-grep))
+ (string-match "^[^:]+:[^:]+:" str))
+ (match-end 0)
+ 0))
(str (copy-sequence str)))
(cond ((eq ivy--regex-function 'ivy--regex-ignore-order)
(when (consp ivy--old-re)
- [elpa] master 2a1ef54 148/272: ivy-dispatching-done should not permanently modify default action index, (continued)
- [elpa] master 2a1ef54 148/272: ivy-dispatching-done should not permanently modify default action index, Oleh Krehel, 2016/04/25
- [elpa] master 5eaf787 078/272: doc/ivy.org: Improve the Texinfo/HTML export structure, Oleh Krehel, 2016/04/25
- [elpa] master b7c40d3 152/272: ivy.el (ivy-resume): Add a guard against null :action, Oleh Krehel, 2016/04/25
- [elpa] master 2ab9c54 197/272: ivy.el (ivy--switch-buffer-matcher): Fix, Oleh Krehel, 2016/04/25
- [elpa] master db00518 270/272: Bump version to 0.8.0, Oleh Krehel, 2016/04/25
- [elpa] master 96828c2 100/272: ivy.el (ivy-read): Identify extra-actions by caller as well, Oleh Krehel, 2016/04/25
- [elpa] master d425392 178/272: Correctly expand the file name at point, Oleh Krehel, 2016/04/25
- [elpa] master 8201f36 224/272: ivy.el (ivy-occur-revert-buffer): Improve for counsel-git-grep, Oleh Krehel, 2016/04/25
- [elpa] master 20f11b7 159/272: New command ivy-occur-revert-buffer bound to "g", Oleh Krehel, 2016/04/25
- [elpa] master d8da9c4 188/272: counsel.el (counsel-mode): Allow use of describe-prefix-bindings, Oleh Krehel, 2016/04/25
- [elpa] master ab795d0 265/272: Don't highlight that match in the file name part,
Oleh Krehel <=
- [elpa] master 255457a 177/272: Fixed counsel-list-processes-action-switch to use correct buffer., Oleh Krehel, 2016/04/25
- [elpa] master 48b5638 129/272: ivy.el (ivy-next-history-element): Don't add symbol bounds for file names, Oleh Krehel, 2016/04/25
- [elpa] master 41dfae6 194/272: ivy.el (ivy--format-function-generic): Fix doc, Oleh Krehel, 2016/04/25
- [elpa] master f0de338 198/272: ivy.el (ivy--directory-done): Fix when ivy-text is a dir, Oleh Krehel, 2016/04/25
- [elpa] master 67224c0 171/272: counsel.el (counsel-prompt-function): New defcustom, Oleh Krehel, 2016/04/25
- [elpa] master 0c5f68c 183/272: counsel.el (counsel-pt): Add, Oleh Krehel, 2016/04/25
- [elpa] master 692002d 184/272: counsel.el (counsel-pt): Remove unused args, Oleh Krehel, 2016/04/25
- [elpa] master 0bad922 083/272: Provide the :caller in most calls to ivy-read, Oleh Krehel, 2016/04/25
- [elpa] master dabd1f8 205/272: ivy.el (ivy-avy): Make "C-g" cancel gracefully, Oleh Krehel, 2016/04/25
- [elpa] master e8f2064 117/272: Rename counsel-symbol-at-point to ivy-thing-at-point, Oleh Krehel, 2016/04/25