]> code.delx.au - gnu-emacs-elpa/blobdiff - counsel.el
doc/ivy.org: Add a note on :predicate
[gnu-emacs-elpa] / 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)