aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-10-14 12:01:26 +0100
committerThomas Adam <thomas@xteddy.org>2019-10-14 12:01:26 +0100
commiteb57cbcc296b10d8d9ea41930ab402717c800f9c (patch)
tree6f6ad7c4bfb1abcba860ee51e9bc77ffef1bfc5a /format.c
parent7323ffeef22074911038444c0bfc675f56cd9726 (diff)
parentb598bbcc2e8b26855e4d34dfff9c222c28080cd7 (diff)
downloadrtmux-eb57cbcc296b10d8d9ea41930ab402717c800f9c.tar.gz
rtmux-eb57cbcc296b10d8d9ea41930ab402717c800f9c.tar.bz2
rtmux-eb57cbcc296b10d8d9ea41930ab402717c800f9c.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 27c27d68..8bc4215c 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 = osdep_get_name(wp->fd, wp->tty);