mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Do not crash with pane_current_command if the pane is newly created and
has no shell set, from Thomas Adam.
This commit is contained in:
parent
f18cd5b19c
commit
b598bbcc2e
2
format.c
2
format.c
@ -574,7 +574,7 @@ format_cb_current_command(struct format_tree *ft, struct format_entry *fe)
|
|||||||
struct window_pane *wp = ft->wp;
|
struct window_pane *wp = ft->wp;
|
||||||
char *cmd;
|
char *cmd;
|
||||||
|
|
||||||
if (wp == NULL)
|
if (wp == NULL || wp->shell == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
cmd = get_proc_name(wp->fd, wp->tty);
|
cmd = get_proc_name(wp->fd, wp->tty);
|
||||||
|
Loading…
Reference in New Issue
Block a user