multigrid: Get rid of global ScreenLines and set_screengrid

This commit is contained in:
Utkarsh Maheshwari
2018-08-17 17:40:04 +05:30
committed by Björn Linse
parent 0432e1586e
commit 911b731378
8 changed files with 43 additions and 59 deletions

View File

@@ -213,11 +213,11 @@ void clear_hl_tables(bool reinit)
highlight_attr_set_all();
highlight_changed();
redraw_all_later(NOT_VALID);
if (ScreenAttrs) {
if (default_grid.ScreenAttrs) {
// the meaning of 0 doesn't change anyway
// but the rest must be retransmitted
memset(ScreenAttrs, 0,
sizeof(*ScreenAttrs) * (size_t)(screen_Rows * screen_Columns));
memset(default_grid.ScreenAttrs, 0, sizeof(*default_grid.ScreenAttrs)
* (size_t)(default_grid.Rows * default_grid.Columns));
}
} else {
kv_destroy(attr_entries);