[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7032df7 06/12: counsel.el (counsel-git-grep): Fixup
From: |
Oleh Krehel |
Subject: |
[elpa] master 7032df7 06/12: counsel.el (counsel-git-grep): Fixup |
Date: |
Thu, 23 Apr 2015 18:01:57 +0000 |
branch: master
commit 7032df7c6d3d195d0e943201e08641816c14185e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-git-grep): Fixup
---
counsel.el | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/counsel.el b/counsel.el
index a99bda8..f41608d 100644
--- a/counsel.el
+++ b/counsel.el
@@ -229,15 +229,14 @@
(ivy--dynamic-function (when (> counsel--git-grep-count 20000)
'counsel-git-grep-function))
(ivy--persistent-action (lambda (x)
- (setq lst (split-string x ":"))
- (find-file (expand-file-name (car lst)
counsel--git-grep-dir))
- (goto-char (point-min))
- (forward-line (1- (string-to-number
(cadr lst))))
- (setq swiper--window (selected-window))
- (swiper--cleanup)
- (swiper--add-overlays (ivy--regex
ivy-text))))
- (val (ivy-read "pattern: " 'counsel-git-grep-function))
- lst)
+ (let ((lst (split-string x ":")))
+ (find-file (expand-file-name (car
lst) counsel--git-grep-dir))
+ (goto-char (point-min))
+ (forward-line (1- (string-to-number
(cadr lst))))
+ (setq swiper--window
(selected-window))
+ (swiper--cleanup)
+ (swiper--add-overlays (ivy--regex
ivy-text)))))
+ (val (ivy-read "pattern: " 'counsel-git-grep-function)))
(when val
(funcall ivy--persistent-action val)))
(swiper--cleanup)))
- [elpa] master updated (f9b63e4 -> c10ba4b), Oleh Krehel, 2015/04/23
- [elpa] master 444f57e 01/12: ivy.el (ivy-done): Don't expand globs, Oleh Krehel, 2015/04/23
- [elpa] master 013fe04 02/12: swiper.el (swiper--ivy): Check for stand-alone ivy, Oleh Krehel, 2015/04/23
- [elpa] master 7032df7 06/12: counsel.el (counsel-git-grep): Fixup,
Oleh Krehel <=
- [elpa] master c3e38fb 07/12: Remove globbing heuristics for file name completion, Oleh Krehel, 2015/04/23
- [elpa] master 886d908 08/12: Exclude jabber-chat-mode from font-lock, Oleh Krehel, 2015/04/23
- [elpa] master 9470e76 09/12: Avoid sorting org refile candidates, Oleh Krehel, 2015/04/23
- [elpa] master cf3ac8f 04/12: ivy.el (ivy-done): Update wrt globs, Oleh Krehel, 2015/04/23
- [elpa] master 725e12a 11/12: ivy.el (Info-current-file): Declare, Oleh Krehel, 2015/04/23
- [elpa] master 37b7d39 03/12: swiper.el (swiper-query-replace): Fix, Oleh Krehel, 2015/04/23
- [elpa] master a70b734 05/12: ivy.el (ivy-backward-delete-char): Expand `ivy--directory', Oleh Krehel, 2015/04/23
- [elpa] master c10ba4b 12/12: Merge commit '725e12a51e837ed75361f9f2258a887cacb120cd' from swiper, Oleh Krehel, 2015/04/23
- [elpa] master 9b315e8 10/12: Use "//" to move to root instead of "/" as before, Oleh Krehel, 2015/04/23