From b598bbcc2e8b26855e4d34dfff9c222c28080cd7 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 14 Oct 2019 09:24:06 +0000 Subject: Do not crash with pane_current_command if the pane is newly created and has no shell set, from Thomas Adam. --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index 581fa582..dd69512f 100644 --- a/format.c +++ b/format.c @@ -574,7 +574,7 @@ format_cb_current_command(struct format_tree *ft, struct format_entry *fe) struct window_pane *wp = ft->wp; char *cmd; - if (wp == NULL) + if (wp == NULL || wp->shell == NULL) return; cmd = get_proc_name(wp->fd, wp->tty); -- cgit