diff options
author | 2017-06-06 15:49:35 +0000 | |
---|---|---|
committer | 2017-06-06 15:49:35 +0000 | |
commit | 60616f39de5ef995d831091cdfffc72606639677 (patch) | |
tree | f888cdfe56dfe3856a25518da887fff7cdfa66a7 /usr.bin/tmux/server-client.c | |
parent | Do not pass a state into commands when fired on individual items in tree (diff) | |
download | wireguard-openbsd-60616f39de5ef995d831091cdfffc72606639677.tar.xz wireguard-openbsd-60616f39de5ef995d831091cdfffc72606639677.zip |
Continue and pass keys through if they are repeated keys, so that the
first key after a repeated key doesn't get lost.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 1c8e78e5a15..b81772acadc 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.237 2017/05/31 11:00:00 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.238 2017/06/06 15:49:35 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -816,7 +816,7 @@ server_client_handle_key(struct client *c, key_code key) struct timeval tv; struct key_table *table, *first; struct key_binding bd_find, *bd; - int xtimeout; + int xtimeout, flags; struct cmd_find_state fs; /* Check the client is good to accept input. */ @@ -913,6 +913,7 @@ server_client_handle_key(struct client *c, key_code key) server_status_client(c); return; } + flags = c->flags; retry: /* Log key table. */ @@ -990,7 +991,7 @@ retry: * No match in the root table either. If this wasn't the first table * tried, don't pass the key to the pane. */ - if (first != table) { + if (first != table && (~flags & CLIENT_REPEAT)) { server_client_set_key_table(c, NULL); server_status_client(c); return; |