diff options
-rw-r--r-- | lisp/comint.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index b76aacfc57..1073970a5f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1,6 +1,6 @@ ;;; comint.el --- general command interpreter in a window stuff -;; Copyright (C) 1988, 1990, 1992, 1993 Free Software Foundation, Inc. +;; Copyright (C) 1988, 1990, 1992, 1993, 1994 Free Software Foundation, Inc. ;; Author: Olin Shivers <[email protected]> ;; Adapted-by: Simon Marshall <[email protected]> @@ -1419,7 +1419,7 @@ Does not delete the prompt." Also put cursor there if the current position is not visible." (interactive) (let ((pos (point))) - (goto-char comint-last-input-end) + (goto-char (or (marker-position comint-last-input-end) (point-max))) (beginning-of-line 0) (set-window-start (selected-window) (point)) (if (pos-visible-in-window-p pos) |