summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index b518c87..53232ec 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -774,7 +774,7 @@ See `compilation-error-regexp-alist for help on their format.")
; start of the buffer: the relevant text
; (shortened url or error message) is exactly
; the last line.
- (end-of-buffer)
+ (goto-char (point-max))
(let ((last-line (thing-at-point 'line t))
(err (plist-get state :error)))
(kill-buffer)