summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 72109e5..ebc6ee9 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1609,7 +1609,7 @@ See `compilation-error-regexp-alist' for help on their format.")
the compilation window until the top of the error is visible."
(save-selected-window
(when (eq major-mode 'rust-mode)
- (select-window (get-buffer-window next-error-last-buffer))
+ (select-window (get-buffer-window next-error-last-buffer 'visible))
(when (save-excursion
(beginning-of-line)
(looking-at " *-->"))