summaryrefslogtreecommitdiffstats
path: root/cmd-display-panes.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-display-panes.c')
-rw-r--r--cmd-display-panes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-display-panes.c b/cmd-display-panes.c
index aa665f08..df97819c 100644
--- a/cmd-display-panes.c
+++ b/cmd-display-panes.c
@@ -204,7 +204,7 @@ cmd_display_panes_key(struct client *c, struct key_event *event)
struct cmd_parse_result *pr;
if (event->key < '0' || event->key > '9')
- return (1);
+ return (-1);
wp = window_pane_at_index(w, event->key - '0');
if (wp == NULL)