Check prefix when retrying so it is checked while repeat flag is

set. GitHub issue 1239.
pull/1274/head
nicm 2018-02-22 10:58:12 +00:00
parent 623f4b12d3
commit e97daead43
1 changed files with 1 additions and 1 deletions

View File

@ -907,6 +907,7 @@ server_client_handle_key(struct client *c, key_code key)
* The prefix always takes precedence and forces a switch to the prefix
* table, unless we are already there.
*/
retry:
key0 = (key & ~KEYC_XTERM);
if ((key0 == (key_code)options_get_number(s->options, "prefix") ||
key0 == (key_code)options_get_number(s->options, "prefix2")) &&
@ -917,7 +918,6 @@ server_client_handle_key(struct client *c, key_code key)
}
flags = c->flags;
retry:
/* Log key table. */
if (wp == NULL)
log_debug("key table %s (no pane)", table->name);