Skip to content

Commit 0e79de2

Browse files
committed
Merge pull request #770 from vitoshka/jump-to-error
Honor `cider-auto-jump-to-error` when `cider-show-error-buffer` is non-nil
2 parents 27e4e07 + 21cb232 commit 0e79de2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cider-interaction.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,9 @@ If location could not be found, return nil."
11341134
"If `cider-auto-jump-to-error' is non-nil, retrieve error location from ERR and jump to it."
11351135
(-when-let (pos (and cider-auto-jump-to-error
11361136
(cider--find-last-error-location buffer err)))
1137-
(with-current-buffer buffer
1138-
(goto-char (car pos)))))
1137+
(display-buffer buffer)
1138+
(-when-let (win (get-buffer-window buffer))
1139+
(set-window-point win (car pos)))))
11391140

11401141

11411142
(defun cider-need-input (buffer)

0 commit comments

Comments
 (0)