This commit is contained in:
Kovid Goyal
2025-09-30 15:44:31 +05:30
parent ca7ab7a57c
commit 580971e309

View File

@@ -2585,7 +2585,7 @@ screen_delete_lines(Screen *self, unsigned int count) {
unsigned int top = self->margin_top, bottom = self->margin_bottom;
if (count == 0) count = 1;
if (top <= self->cursor->y && self->cursor->y <= bottom) {
screen_delete_lines_impl(self, self->cursor->y, count, self->margin_bottom, self->margin_bottom);
screen_delete_lines_impl(self, self->cursor->y, count, top, bottom);
screen_carriage_return(self);
}
}