Commit ed0c0f2c authored by Eric Eisner's avatar Eric Eisner Committed by Russ Cox

misc/emacs: don't select the mark after gofmt

R=ajmani
CC=golang-dev
https://golang.org/cl/4553054
parent 4c945c2c
......@@ -523,7 +523,7 @@ Replace the current buffer on success; display errors on failure."
(erase-buffer)
(insert-buffer-substring outbuf)
(goto-char (min old-point (point-max)))
(if old-mark (set-mark (min old-mark (point-max))))
(if old-mark (push-mark (min old-mark (point-max)) t))
(kill-buffer errbuf))
;; gofmt failed: display the errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment