Commit 5ed65b55 authored by Miles Bader's avatar Miles Bader
Browse files

(comint-output-filter): Properly handle the case where the text

  surrounded by comint-last-output-overlay was deleted.
parent 25ad1371
...@@ -1490,8 +1490,8 @@ This variable is permanent-local.") ...@@ -1490,8 +1490,8 @@ This variable is permanent-local.")
;; inserted with insert-before-markers?), and only make ;; inserted with insert-before-markers?), and only make
;; a new overlay if it hasn't. ;; a new overlay if it hasn't.
(unless (and comint-last-output-overlay (unless (and comint-last-output-overlay
(= (overlay-end comint-last-output-overlay) (equal (overlay-end comint-last-output-overlay)
(point))) (point)))
;; Create a new overlay ;; Create a new overlay
(let ((over (make-overlay ostart (point)))) (let ((over (make-overlay ostart (point))))
(overlay-put over 'field 'output) (overlay-put over 'field 'output)
......
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