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