render: configure default tab stops when resizing the terminal

This commit is contained in:
Daniel Eklöf 2019-11-16 10:54:56 +01:00
parent f91073c362
commit 37139fc4fa
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -911,6 +911,11 @@ render_resize(struct terminal *term, int width, int height)
grid_row_free(term->alt.rows[r]);
free(term->alt.rows);
/* Reset tab stops */
tll_free(term->tab_stops);
for (int c = 0; c < new_cols; c += 8)
tll_push_back(term->tab_stops, c);
term->cols = new_cols;
term->rows = new_rows;