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

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

[elpa] master 6fae6e0 259/272: counsel.el (counsel-grep-or-swiper): Use


From: Oleh Krehel
Subject: [elpa] master 6fae6e0 259/272: counsel.el (counsel-grep-or-swiper): Use swiper when narrowed
Date: Mon, 25 Apr 2016 10:13:29 +0000

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

    counsel.el (counsel-grep-or-swiper): Use swiper when narrowed
---
 counsel.el |    1 +
 1 file changed, 1 insertion(+)

diff --git a/counsel.el b/counsel.el
index 7e9c2f7..8c603b7 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1507,6 +1507,7 @@ the command."
   "Call `swiper' for small buffers and `counsel-grep' for large ones."
   (interactive)
   (if (and (buffer-file-name)
+           (not (buffer-narrowed-p))
            (not (ignore-errors
                   (file-remote-p (buffer-file-name))))
            (> (buffer-size)



reply via email to

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