Thomas Adam
unread,Oct 8, 2019, 11:55:54 AM10/8/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tmux-...@googlegroups.com, Thomas Adam
When trying to call splitw from a zoomed pane due to running
'choose-tree', tmux will segfault as the default format will try and
access wp->shell which isn't initialised.
Skip this in the format's current_command callback as we can't do
anything useful with it anyway.
---
format.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.22.0