diff options
| -rw-r--r-- | rust-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el index b6ef25b..9d17cc0 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1534,7 +1534,7 @@ rustfmt complain in the echo area." (if (re-search-forward "\nerror:.+\n" nil t) (buffer-substring p0 (point)) (buffer-substring p0 (point-max))))))))) - (when (and target-buffer target-point) + (when (and target-buffer (get-buffer target-buffer) target-point) (switch-to-buffer target-buffer) (goto-char (point-min)) (forward-line (1- (car target-point))) |
