branch: master
commit 09c40fc3bcc375b0bf3f53e9470c48c83a535a88
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    swiper.el (swiper--occur-insert-lines): Simplify
---
 swiper.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/swiper.el b/swiper.el
index 0d97bc1..a32eaa7 100644
--- a/swiper.el
+++ b/swiper.el
@@ -637,8 +637,7 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
   (insert (format "%d candidates:\n" (length cands)))
   (ivy--occur-insert-lines cands)
   (goto-char (point-min))
-  (forward-line 4)
-  (setq-local next-error-function #'ivy-occur-next-error))
+  (forward-line 4))
 
 (defun swiper--occur-buffer ()
   (let ((buffer (ivy-state-buffer ivy-last)))

Reply via email to