summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2023-10-23 08:12:00 +0000
committernicm <nicm>2023-10-23 08:12:00 +0000
commit36e1ac65560a34c6fa381f821f6b1b733f9b6ed6 (patch)
tree73d3a4044b809eee1b03ab3af2975105fae64727
parentffa376edf7df3858ae8dc5f606a024c365c0f804 (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.c2
-rw-r--r--window.c1
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) {
diff --git a/window.c b/window.c
index c1365993..c16dc128 100644
--- a/window.c
+++ b/window.c
@@ -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)