Skip to content

Commit c8280ae

Browse files
authored
Merge pull request #235 from tromey/get-buffer-window-fixlet
Pass 'visible to get-buffer-window
2 parents 7ff04a8 + a814cd8 commit c8280ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ See `compilation-error-regexp-alist' for help on their format.")
16091609
the compilation window until the top of the error is visible."
16101610
(save-selected-window
16111611
(when (eq major-mode 'rust-mode)
1612-
(select-window (get-buffer-window next-error-last-buffer))
1612+
(select-window (get-buffer-window next-error-last-buffer 'visible))
16131613
(when (save-excursion
16141614
(beginning-of-line)
16151615
(looking-at " *-->"))

0 commit comments

Comments
 (0)