mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
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:
parent
c599ad63f8
commit
87ea14328c
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user