Also move overlay line when handling SGR

This commit is contained in:
Kovid Goyal
2021-11-12 19:56:44 +05:30
parent 80eb78033f
commit 75afe7cd33

View File

@@ -794,6 +794,7 @@ screen_alignment_display(Screen *self) {
void
select_graphic_rendition(Screen *self, int *params, unsigned int count, Region *region_) {
MOVE_OVERLAY_LINE_WITH_CURSOR; // needed in case colors have changed
if (region_) {
Region region = *region_;
if (!region.top) region.top = 1;