aboutsummaryrefslogtreecommitdiff
path: root/window-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'window-tree.c')
-rw-r--r--window-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-tree.c b/window-tree.c
index 05946160..a58154b8 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;