mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: configure default tab stops when resizing the terminal
This commit is contained in:
parent
f91073c362
commit
37139fc4fa
1 changed files with 5 additions and 0 deletions
5
render.c
5
render.c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue