mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
Fix terminal emulation of "ESC [ K" sequence
* lisp/term.el (term-erase-in-line): Don't immediately delete the newly inserted characters.
This commit is contained in:
parent
6a605c65a8
commit
3b608b233e
1 changed files with 5 additions and 4 deletions
|
|
@ -4128,10 +4128,11 @@ all pending output has been dealt with."))
|
|||
;; contain a space, to force the previous line to continue to wrap.
|
||||
;; We could do this always, but it seems preferable to not add the
|
||||
;; extra space when wrapped is false.
|
||||
(when wrapped
|
||||
(insert-before-markers ? ))
|
||||
(insert-before-markers ?\n)
|
||||
(delete-region saved-point (point)))
|
||||
(let ((deletion-point (point)))
|
||||
(when wrapped
|
||||
(insert-before-markers ? ))
|
||||
(insert-before-markers ?\n)
|
||||
(delete-region saved-point deletion-point)))
|
||||
(put-text-property saved-point (point) 'font-lock-face 'default)
|
||||
(goto-char saved-point))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue