]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el (counsel-grep-or-swiper): Use swiper when narrowed
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 18 Apr 2016 08:17:25 +0000 (10:17 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 18 Apr 2016 08:17:25 +0000 (10:17 +0200)
counsel.el

index 7e9c2f74226939510083a37765d67f44dbc41575..8c603b7028e86e08735181a933ec94fe4b6b1656 100644 (file)
@@ -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)