Also move overlay line for CSI ECH,DCH

Without this Neovim banner might not be properly cleared when overlay
text is active.
This commit is contained in:
Park, Jeongmin 2021-11-17 00:27:13 +09:00
parent d936ede790
commit 7c59afbca9

View File

@ -1722,6 +1722,7 @@ screen_repeat_character(Screen *self, unsigned int count) {
void
screen_delete_characters(Screen *self, unsigned int count) {
MOVE_OVERLAY_LINE_WITH_CURSOR;
// Delete characters, later characters are moved left
const unsigned int top = 0, bottom = self->lines ? self->lines - 1 : 0;
if (count == 0) count = 1;
@ -1739,6 +1740,7 @@ screen_delete_characters(Screen *self, unsigned int count) {
void
screen_erase_characters(Screen *self, unsigned int count) {
MOVE_OVERLAY_LINE_WITH_CURSOR;
// Delete characters replacing them by spaces
if (count == 0) count = 1;
unsigned int x = self->cursor->x;