diff --git a/grid.c b/grid.c index 830929c0e..abb8ee6e7 100644 --- a/grid.c +++ b/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.160 2026/10/12 08:08:37 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.161 2026/10/12 15:40:17 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -1453,8 +1453,7 @@ grid_reflow_join(struct grid *target, struct grid *gd, u_int sx, u_int yy, /* Remove the lines that were completely consumed. */ for (i = yy + 1; i < yy + 1 + lines; i++) { - free(gd->linedata[i].celldata); - free(gd->linedata[i].extddata); + grid_free_line(gd, i); grid_reflow_dead(&gd->linedata[i]); } diff --git a/input.c b/input.c index 9bd03cf4e..d83da9f0e 100644 --- a/input.c +++ b/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.273 2026/10/08 07:50:05 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.274 2026/10/12 17:04:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -2020,6 +2020,7 @@ static void input_csi_dispatch_sm_private(struct input_ctx *ictx) { struct screen_write_ctx *sctx = &ictx->ctx; + struct window_pane *wp = ictx->wp; struct grid_cell *gc = &ictx->cell.cell; u_int i; @@ -2081,13 +2082,13 @@ input_csi_dispatch_sm_private(struct input_ctx *ictx) break; case 2031: screen_write_mode_set(sctx, MODE_THEME_UPDATES); - if (ictx->wp != NULL) { - ictx->wp->last_theme = window_pane_get_theme(ictx->wp); - ictx->wp->flags &= ~PANE_THEMECHANGED; + if (wp != NULL) { + wp->last_theme = window_pane_get_theme(wp); + wp->flags &= ~PANE_THEMECHANGED; } break; case 2026: - screen_write_start_sync(ictx->wp); + screen_write_start_sync(wp); break; default: log_debug("%s: unknown '%c'", __func__, ictx->ch);