summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/term.el b/lisp/term.el
index 4511c394fd2..295f1e8d379 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -3465,7 +3465,8 @@ The top-most line is line 0."
(set-buffer buffer)
(save-restriction
(widen)
- (goto-line line)
+ (goto-char (point-min))
+ (forward-line (1- line))
(setq pos (point))
(setq overlay-arrow-string "=>")
(or overlay-arrow-position