Skip to content

Commit 4d6350d

Browse files
committed
Always set next-error-last-buffer
1 parent 0bf2601 commit 4d6350d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deadgrep.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,6 @@ If POS is nil, use the beginning position of the current line."
12241224
;; consistent with `compilation-next-error-function' and also
12251225
;; useful with `deadgrep-visit-result-other-window'.
12261226
(setq overlay-arrow-position (copy-marker pos))
1227-
(setq next-error-last-buffer (current-buffer))
12281227

12291228
(funcall open-fn file-name)
12301229
(goto-char (point-min))
@@ -1670,6 +1669,7 @@ don't actually start the search."
16701669
(with-current-buffer buf
16711670
(setq imenu-create-index-function #'deadgrep--create-imenu-index)
16721671
(setq next-error-function #'deadgrep-next-error)
1672+
(setq next-error-last-buffer buf)
16731673

16741674
;; If we have previous search settings, apply them to our new
16751675
;; search results buffer.

0 commit comments

Comments
 (0)