Commit 2c3d5985 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(comint-postoutput-scroll-to-bottom): Cope with unset

comint-last-output-start marker.
parent 5651af6d
......@@ -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.
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