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:
Daniel Eklöf 2020-02-15 18:57:52 +01:00
parent 9e6404be11
commit ab43a6fd37
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);