render: set tracking point count to 0 if there’s no active selection

This commit is contained in:
Daniel Eklöf 2021-05-15 11:39:59 +02:00
parent a5ec26ccc9
commit d2c0a65b70
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3242,7 +3242,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
/* Resize grids */
grid_resize_and_reflow(
&term->normal, new_normal_grid_rows, new_cols, old_rows, new_rows,
ALEN(tracking_points), tracking_points,
term->selection.end.row >= 0 ? ALEN(tracking_points) : 0, tracking_points,
term->composed_count, term->composed);
grid_resize_without_reflow(