mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-22 01:40:17 -05:00
render: resize: cancel selection before reflowing text
The old selection will no longer be valid once we resize the grids.
This commit is contained in:
parent
9e6404be11
commit
ab43a6fd37
1 changed files with 2 additions and 0 deletions
2
render.c
2
render.c
|
|
@ -1105,6 +1105,8 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
|
|||
if (!force && width == term->width && height == term->height && scale == term->scale)
|
||||
return;
|
||||
|
||||
selection_cancel(term);
|
||||
|
||||
/* Cancel an application initiated "Synchronized Update" */
|
||||
term_disable_app_sync_updates(term);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue