@@ -4433,17 +4433,17 @@ static void grid_move_line(ScreenGrid *grid, int row, int coloff, int endcol,
4433
4433
schar_T sc ;
4434
4434
schar_from_char (sc , c );
4435
4435
4436
- if (schar_cmp (grid -> ScreenLines [off_to ], sc )
4437
- || grid -> ScreenAttrs [off_to ] != hl ) {
4438
- schar_copy (grid -> ScreenLines [off_to ], sc );
4439
- grid -> ScreenAttrs [off_to ] = hl ;
4436
+ if (schar_cmp (default_grid . ScreenLines [off_to ], sc )
4437
+ || default_grid . ScreenAttrs [off_to ] != hl ) {
4438
+ schar_copy (default_grid . ScreenLines [off_to ], sc );
4439
+ default_grid . ScreenAttrs [off_to ] = hl ;
4440
4440
if (start_dirty == -1 ) {
4441
4441
start_dirty = col ;
4442
4442
}
4443
4443
end_dirty = col + 1 ;
4444
4444
}
4445
4445
} else
4446
- grid -> LineWraps [row ] = FALSE ;
4446
+ default_grid . LineWraps [row ] = false ;
4447
4447
}
4448
4448
4449
4449
if (clear_end < end_dirty ) {
@@ -4453,7 +4453,7 @@ static void grid_move_line(ScreenGrid *grid, int row, int coloff, int endcol,
4453
4453
start_dirty = end_dirty ;
4454
4454
}
4455
4455
if (clear_end > start_dirty ) {
4456
- ui_line (row , coloff + start_dirty , coloff + end_dirty , coloff + clear_end ,
4456
+ ui_line (grid , row , coloff + start_dirty , coloff + end_dirty , coloff + clear_end ,
4457
4457
bg_attr );
4458
4458
}
4459
4459
}
@@ -5417,7 +5417,7 @@ void screen_puts_line_flush(bool set_cursor)
5417
5417
if (set_cursor ) {
5418
5418
ui_cursor_goto (put_dirty_row , put_dirty_last );
5419
5419
}
5420
- ui_line (put_dirty_row , put_dirty_first , put_dirty_last , put_dirty_last , 0 );
5420
+ ui_line (& default_grid , put_dirty_row , put_dirty_first , put_dirty_last , put_dirty_last , 0 );
5421
5421
put_dirty_first = -1 ;
5422
5422
put_dirty_last = 0 ;
5423
5423
}
@@ -5778,16 +5778,16 @@ void grid_fill(ScreenGrid *grid, int start_row, int end_row, int start_col,
5778
5778
put_dirty_last = MAX (put_dirty_last , dirty_last );
5779
5779
} else {
5780
5780
int last = c2 != ' ' ? dirty_last : dirty_first + (c1 != ' ' );
5781
- ui_line (row , dirty_first , last , dirty_last , attr );
5781
+ ui_line (grid , row , dirty_first , last , dirty_last , attr );
5782
5782
}
5783
5783
}
5784
5784
5785
- if (end_col == grid -> Columns ) {
5785
+ if (end_col == Columns ) {
5786
5786
grid -> LineWraps [row ] = false;
5787
5787
}
5788
5788
5789
5789
// TODO(bfredl): The relevant caller should do this
5790
- if (row == Rows - 1 ) { // overwritten the command line
5790
+ if (row == grid -> Rows - 1 ) { // overwritten the command line
5791
5791
redraw_cmdline = true;
5792
5792
if (c1 == ' ' && c2 == ' ' ) {
5793
5793
clear_cmdline = false; // command line has been cleared
@@ -7049,8 +7049,8 @@ void screen_resize(int width, int height)
7049
7049
width = Columns ;
7050
7050
ui_resize (width , height );
7051
7051
7052
- Rows = default_grid . Rows ;
7053
- Columns = default_grid . Columns ;
7052
+ default_grid . Rows = screen_Rows ;
7053
+ default_grid . Columns = screen_Columns ;
7054
7054
7055
7055
/* The window layout used to be adjusted here, but it now happens in
7056
7056
* screenalloc() (also invoked from screenclear()). That is because the
0 commit comments