summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-08-27 14:00:18 -0600
committerGitHub <noreply@github.com>2017-08-27 14:00:18 -0600
commitc8280aea1d02ae84bff2a6f02f8dc7701309c8b6 (patch)
treee52edf33ffb336cd4db2195e675d287ec994d84b
parent7ff04a8d26104c2e2c0737e219b320ecaeaafd9d (diff)
parenta814cd8b6f573b46df3918b6b728f000f9dd4782 (diff)
downloadrust-mode-c8280aea1d02ae84bff2a6f02f8dc7701309c8b6.tar.gz
Merge pull request #235 from tromey/get-buffer-window-fixlet
Pass 'visible to get-buffer-window
-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 " *-->"))