grid: reflow: caller may now pass a list of coordinates that should be translated

This commit is contained in:
Daniel Eklöf 2020-04-17 21:04:32 +02:00
parent e5521ff79a
commit ef52ed8a10
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 11 additions and 4 deletions

View file

@ -1754,8 +1754,8 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
}
/* Reflow grids */
grid_reflow(&term->normal, new_normal_grid_rows, new_cols, old_rows, new_rows);
grid_reflow(&term->alt, new_alt_grid_rows, new_cols, old_rows, new_rows);
grid_reflow(&term->normal, new_normal_grid_rows, new_cols, old_rows, new_rows, 0, NULL);
grid_reflow(&term->alt, new_alt_grid_rows, new_cols, old_rows, new_rows, 0, NULL);
/* Reset tab stops */
tll_free(term->tab_stops);