From 7c59afbca9901cf35401f6b7b61b48ecc1362ea9 Mon Sep 17 00:00:00 2001 From: "Park, Jeongmin" Date: Wed, 17 Nov 2021 00:27:13 +0900 Subject: [PATCH] Also move overlay line for CSI ECH,DCH Without this Neovim banner might not be properly cleared when overlay text is active. --- kitty/screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/screen.c b/kitty/screen.c index 4b1f7e56b..a1b0ea894 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -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;