diff options
author | nicm <nicm> | 2023-10-23 08:12:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-10-23 08:12:00 +0000 |
commit | 36e1ac65560a34c6fa381f821f6b1b733f9b6ed6 (patch) | |
tree | 73d3a4044b809eee1b03ab3af2975105fae64727 | |
parent | ffa376edf7df3858ae8dc5f606a024c365c0f804 (diff) |
Unzoom window at start of destroy so it doesn't happen later (when
destroying panes) after the layout has been freed, GitHub issue 3717.
-rw-r--r-- | screen-write.c | 2 | ||||
-rw-r--r-- | window.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c index 0fcd156f..01632f61 100644 --- a/screen-write.c +++ b/screen-write.c @@ -2013,7 +2013,7 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc) /* * Check if we need to combine characters. This could be zero width - * (zet above), a modifier character (with an existing Unicode + * (set above), a modifier character (with an existing Unicode * character) or a previous ZWJ. */ if (!zero_width) { @@ -340,6 +340,7 @@ window_destroy(struct window *w) { log_debug("window @%u destroyed (%d references)", w->id, w->references); + window_unzoom(w); RB_REMOVE(windows, &windows, w); if (w->layout_root != NULL) |