Skip to content

Commit

Permalink
Always set next-error-last-buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
deejayem committed Oct 11, 2024
1 parent 0bf2601 commit 4d6350d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deadgrep.el
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,6 @@ If POS is nil, use the beginning position of the current line."
;; consistent with `compilation-next-error-function' and also
;; useful with `deadgrep-visit-result-other-window'.
(setq overlay-arrow-position (copy-marker pos))
(setq next-error-last-buffer (current-buffer))

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

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

0 comments on commit 4d6350d

Please sign in to comment.