From e91e8a2a6c9bd36309acc58723cb62edc4410931 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 26 Oct 2017 08:17:12 +0000 Subject: Fix crash exiting command prompt (from Alex Maese in GitHub issue 1139) and a man page tweak from jmc. --- window-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window-tree.c') diff --git a/window-tree.c b/window-tree.c index b7626c86..164f0aad 100644 --- a/window-tree.c +++ b/window-tree.c @@ -931,7 +931,7 @@ window_tree_command_callback(struct client *c, void *modedata, const char *s, { struct window_tree_modedata *data = modedata; - if (data->dead) + if (s == NULL || data->dead) return (0); data->entered = s; -- cgit