diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-15 17:57:52 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-15 17:57:52 +0000 |
| commit | ab43a6fd37981a286873cb614ac3565e024948c1 (patch) | |
| tree | af5215564723932bd4bb6d9635f399e58ee7eecc | |
| parent | render: reflow: bug: fix off-by-one (diff) | |
render: resize: cancel selection before reflowing text
The old selection will no longer be valid once we resize the grids.
| -rw-r--r-- | render.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
