From: Oleh Krehel Date: Mon, 18 Apr 2016 08:17:25 +0000 (+0200) Subject: counsel.el (counsel-grep-or-swiper): Use swiper when narrowed X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/6fae6e0909fa1376bea5abf3a82e4253968aba31?ds=sidebyside counsel.el (counsel-grep-or-swiper): Use swiper when narrowed --- 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)