File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1224,7 +1224,6 @@ If POS is nil, use the beginning position of the current line."
1224
1224
; ; consistent with `compilation-next-error-function' and also
1225
1225
; ; useful with `deadgrep-visit-result-other-window' .
1226
1226
(setq overlay-arrow-position (copy-marker pos))
1227
- (setq next-error-last-buffer (current-buffer ))
1228
1227
1229
1228
(funcall open-fn file-name)
1230
1229
(goto-char (point-min ))
@@ -1670,6 +1669,7 @@ don't actually start the search."
1670
1669
(with-current-buffer buf
1671
1670
(setq imenu-create-index-function #'deadgrep--create-imenu-index )
1672
1671
(setq next-error-function #'deadgrep-next-error )
1672
+ (setq next-error-last-buffer buf)
1673
1673
1674
1674
; ; If we have previous search settings, apply them to our new
1675
1675
; ; search results buffer.
You can’t perform that action at this time.
0 commit comments