summaryrefslogtreecommitdiffstats
path: root/cmd-display-panes.c
diff options
context:
space:
mode:
authornicm <nicm>2019-06-26 18:28:31 +0000
committernicm <nicm>2019-06-26 18:28:31 +0000
commit87ea14328ce60fdfb8bd0aef15b7e3b3bdccb1ed (patch)
tree267f525e99deefb03e62e9828236787b770bfe61 /cmd-display-panes.c
parentc599ad63f8857bd74e85150e60339fd2efbb9650 (diff)
Pass keys that aren't 0-9 on to normal key processing when display-panes
is active (restores previous behaviour).
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)