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)
'(term-line-wrap t rear-nonsticky t)))))
(defun term-erase-in-line (kind)
- (when (= kind 1) ;; erase left of point
+ (when (>= kind 1) ;; erase left of point
(let ((cols (term-horizontal-column)) (saved-point (point)))
(term-vertical-motion 0)
(delete-region (point) saved-point)