Do not use NULL arguments, bug spotted by Dane Jensen.

This commit is contained in:
nicm
2026-06-09 08:11:53 +00:00
parent fd10db5a62
commit 27c58c764d

View File

@@ -1233,7 +1233,7 @@ window_pane_set_mode(struct window_pane *wp, struct window_pane *swp,
TAILQ_INSERT_HEAD(&wp->modes, wme, entry);
wme->screen = wme->mode->init(wme, fs, args);
}
wme->kill = args_has(args, 'k');
wme->kill = args != NULL ? args_has(args, 'k') : 0;
wp->screen = wme->screen;
wp->flags |= (PANE_REDRAW|PANE_REDRAWSCROLLBAR|PANE_CHANGED);