@@ -4446,17 +4446,17 @@ static void grid_move_line(ScreenGrid *grid, int row, int coloff, int endcol,
4446
4446
schar_T sc ;
4447
4447
schar_from_char (sc , c );
4448
4448
4449
- if (schar_cmp (grid -> ScreenLines [off_to ], sc )
4450
- || grid -> ScreenAttrs [off_to ] != hl ) {
4451
- schar_copy (grid -> ScreenLines [off_to ], sc );
4452
- grid -> ScreenAttrs [off_to ] = hl ;
4449
+ if (schar_cmp (default_grid . ScreenLines [off_to ], sc )
4450
+ || default_grid . ScreenAttrs [off_to ] != hl ) {
4451
+ schar_copy (default_grid . ScreenLines [off_to ], sc );
4452
+ default_grid . ScreenAttrs [off_to ] = hl ;
4453
4453
if (start_dirty == -1 ) {
4454
4454
start_dirty = col ;
4455
4455
}
4456
4456
end_dirty = col + 1 ;
4457
4457
}
4458
4458
} else
4459
- grid -> LineWraps [row ] = FALSE ;
4459
+ default_grid . LineWraps [row ] = false ;
4460
4460
}
4461
4461
4462
4462
if (clear_end < end_dirty ) {
@@ -4466,7 +4466,7 @@ static void grid_move_line(ScreenGrid *grid, int row, int coloff, int endcol,
4466
4466
start_dirty = end_dirty ;
4467
4467
}
4468
4468
if (clear_end > start_dirty ) {
4469
- ui_line (row , coloff + start_dirty , coloff + end_dirty , coloff + clear_end ,
4469
+ ui_line (grid , row , coloff + start_dirty , coloff + end_dirty , coloff + clear_end ,
4470
4470
bg_attr );
4471
4471
}
4472
4472
}
@@ -5432,7 +5432,7 @@ void screen_puts_line_flush(bool set_cursor)
5432
5432
if (set_cursor ) {
5433
5433
ui_cursor_goto (put_dirty_row , put_dirty_last );
5434
5434
}
5435
- ui_line (put_dirty_row , put_dirty_first , put_dirty_last , put_dirty_last , 0 );
5435
+ ui_line (& default_grid , put_dirty_row , put_dirty_first , put_dirty_last , put_dirty_last , 0 );
5436
5436
put_dirty_first = -1 ;
5437
5437
put_dirty_last = 0 ;
5438
5438
}
@@ -5795,16 +5795,16 @@ void grid_fill(ScreenGrid *grid, int start_row, int end_row, int start_col,
5795
5795
put_dirty_last = MAX (put_dirty_last , dirty_last );
5796
5796
} else {
5797
5797
int last = c2 != ' ' ? dirty_last : dirty_first + (c1 != ' ' );
5798
- ui_line (row , dirty_first , last , dirty_last , attr );
5798
+ ui_line (grid , row , dirty_first , last , dirty_last , attr );
5799
5799
}
5800
5800
}
5801
5801
5802
- if (end_col == grid -> Columns ) {
5802
+ if (end_col == Columns ) {
5803
5803
grid -> LineWraps [row ] = false;
5804
5804
}
5805
5805
5806
5806
// TODO(bfredl): The relevant caller should do this
5807
- if (row == Rows - 1 ) { // overwritten the command line
5807
+ if (row == default_grid . Rows - 1 ) { // overwritten the command line
5808
5808
redraw_cmdline = true;
5809
5809
if (start_col == 0 && end_col == Columns
5810
5810
&& c1 == ' ' && c2 == ' ' && attr == 0 ) {
@@ -7067,8 +7067,8 @@ void screen_resize(int width, int height)
7067
7067
width = Columns ;
7068
7068
ui_resize (width , height );
7069
7069
7070
- Rows = default_grid . Rows ;
7071
- Columns = default_grid . Columns ;
7070
+ default_grid . Rows = screen_Rows ;
7071
+ default_grid . Columns = screen_Columns ;
7072
7072
7073
7073
/* The window layout used to be adjusted here, but it now happens in
7074
7074
* screenalloc() (also invoked from screenclear()). That is because the
0 commit comments