diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-10-23 08:34:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-10-23 08:34:18 +0000 |
| commit | 59c9dfe109f9045b583299d934ac54b8a07749d2 (patch) | |
| tree | a4dc9a30f926692a63c1825de7ac7a0544b2d6af /render.c | |
| parent | pgo: don’t re-use the rows between the ‘normal’ and ‘alt’ grids (diff) | |
render: resize: do full text reflow immediately if resize-delay-ms == 0
That is, skip all custom grid handling when doing an interactive
resize, if resize-delay-ms == 0.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3955,9 +3955,10 @@ maybe_resize(struct terminal *term, int width, int height, bool force) * To be able to do the final reflow correctly, we need a copy of * the original grid, before the resize started. */ - if (term->window->is_resizing) { + if (term->window->is_resizing && term->conf->resize_delay_ms > 0) { if (term->interactive_resizing.grid == NULL) { term_ptmx_pause(term); + xassert(false); /* Stash the current ‘normal’ grid, as-is, to be used when * doing the final reflow */ @@ -4037,7 +4038,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force) * tracking points list. */ /* Resize grids */ - if (term->window->is_resizing) { + if (term->window->is_resizing && term->conf->resize_delay_ms > 0) { /* Simple truncating resize, *while* an interactive resize is * ongoing. */ xassert(term->interactive_resizing.grid != NULL); |
