(comint-postoutput-scroll-to-bottom): Cope with unset
comint-last-output-start marker.
This commit is contained in:
parent
5651af6d63
commit
2c3d598531
1 changed files with 2 additions and 1 deletions
|
@ -1422,7 +1422,8 @@ This function should be in the list `comint-output-filter-functions'."
|
|||
(and (eq scroll 'this) (eq selected window))
|
||||
(and (eq scroll 'others) (not (eq selected window)))
|
||||
;; If point was at the end, keep it at end.
|
||||
(>= (point) comint-last-output-start)))
|
||||
(and (marker-position comint-last-output-start)
|
||||
(>= (point) comint-last-output-start))))
|
||||
(goto-char (process-mark process)))
|
||||
;; Optionally scroll so that the text
|
||||
;; ends at the bottom of the window.
|
||||
|
|
Loading…
Add table
Reference in a new issue