Use window options for cursor-style to avoid crash when no pane, from

Arden Packeer in GitHub issue 4942.
This commit is contained in:
Nicholas Marriott
2026-03-23 08:59:43 +00:00
parent 5c30b145df
commit cc47f4d1c2

View File

@@ -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);