Pass keys that aren't 0-9 on to normal key processing when display-panes

is active (restores previous behaviour).
This commit is contained in:
nicm 2019-06-26 18:28:31 +00:00
parent c599ad63f8
commit 87ea14328c
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -1220,9 +1220,13 @@ server_client_handle_key(struct client *c, struct key_event *event)
* blocked so they need to be processed immediately rather than queued.
*/
if ((~c->flags & CLIENT_READONLY) && c->overlay_key != NULL) {
if (c->overlay_key(c, event) != 0)
switch (c->overlay_key(c, event)) {
case 0:
return (0);
case 1:
server_client_clear_overlay(c);
return (0);
return (0);
}
}
/*