From cc47f4d1c27ce428053f75e547bfab1b2bd626dc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 23 Mar 2026 08:59:43 +0000 Subject: [PATCH] Use window options for cursor-style to avoid crash when no pane, from Arden Packeer in GitHub issue 4942. --- input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input.c b/input.c index f8e95e19..a0775741 100644 --- a/input.c +++ b/input.c @@ -2571,8 +2571,8 @@ input_dcs_dispatch(struct input_ctx *ictx) } #ifdef ENABLE_SIXEL - w = wp->window; - if (buf[0] == 'q' && ictx->interm_len == 0) { + if (wp != NULL && buf[0] == 'q' && ictx->interm_len == 0) { + w = wp->window; if (input_split(ictx) != 0) return (0); p2 = input_get(ictx, 1, 0, 0);