Merge branch 'nvim_move_overlay_line' of https://github.com/pjm0616/kitty

This commit is contained in:
Kovid Goyal 2021-11-16 21:18:28 +05:30
commit 624ef272fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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;