]> git.eshelyaron.com Git - emacs.git/commit
Make erase-in-line conform to ANSI spec in term
authorDaniel Colascione <dancol@dancol.org>
Fri, 7 Mar 2025 19:07:12 +0000 (11:07 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 10:24:21 +0000 (11:24 +0100)
commit7f4f3789ea646fdbfc07a41c8f175bfd61811f3a
tree1b97cb469ffc4d17b76d9953afb253b81561eb67
parent569843839ced588d06f90ba13f87d3ed8a09db9c
Make erase-in-line conform to ANSI spec in term

When handling \e[<N>K escape sequences, we're supposed to erase both to
the left _and_ to the right of the cursor when N is two.

* lisp/term.el (term-erase-in-line): make condition check more correct

(cherry picked from commit 4ea07cc4b4a676a5f8094d565cd3cea89e6ec77d)
lisp/term.el