From 6fae6e0909fa1376bea5abf3a82e4253968aba31 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Mon, 18 Apr 2016 10:17:25 +0200 Subject: [PATCH] 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 7e9c2f742..8c603b702 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) -- 2.39.2