Fix the CSI J (Erase in display ED) escape code not removing line continued markers

Fixes #2809

Remains to write tests for this.
This commit is contained in:
Kovid Goyal
2020-06-29 14:17:40 +05:30
parent f0c3641ebd
commit e2e701460b
4 changed files with 11 additions and 0 deletions

View File

@@ -51,6 +51,12 @@ linebuf_mark_line_clean(LineBuf *self, index_type y) {
self->line_attrs[y] &= ~TEXT_DIRTY_MASK;
}
void
linebuf_mark_line_as_not_continued(LineBuf *self, index_type y) {
self->line_attrs[y] &= ~CONTINUED_MASK;
}
static PyObject*
clear(LineBuf *self, PyObject *a UNUSED) {
#define clear_doc "Clear all lines in this LineBuf"