summaryrefslogtreecommitdiff
path: root/lisp/view.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-08-22 19:29:18 +0000
committerGlenn Morris <rgm@gnu.org>2009-08-22 19:29:18 +0000
commit73ff65e05cc50b537e71724f1f42083af182f77c (patch)
tree1ac8e8236a6e83332a56270a2c9f181c9cfe16c0 /lisp/view.el
parent8b66f9b29a64cff259aec1012c05503734fe113e (diff)
downloademacs-73ff65e05cc50b537e71724f1f42083af182f77c.tar.gz
Use forward-line rather than goto-line.
Diffstat (limited to 'lisp/view.el')
-rw-r--r--lisp/view.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el
index 311d5e3123c..40214c073c0 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -817,7 +817,8 @@ Display is centered at LINE.
Also set the mark at the position where point was."
(interactive "p")
(push-mark)
- (goto-line line)
+ (goto-char (point-min))
+ (forward-line (1- line))
(view-recenter))
(defun View-back-to-mark (&optional ignore)