destroying panes) after the layout has been freed, GitHub issue 3717.
-/* $OpenBSD: screen-write.c,v 1.222 2023/09/15 15:49:05 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.223 2023/10/23 08:12:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
/*
* 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) {
-/* $OpenBSD: window.c,v 1.286 2023/07/10 09:24:53 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.287 2023/10/23 08:12:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
{
log_debug("window @%u destroyed (%d references)", w->id, w->references);
+ window_unzoom(w);
RB_REMOVE(windows, &windows, w);
if (w->layout_root != NULL)