mirror of https://github.com/tmux/tmux.git
Check prefix when retrying so it is checked while repeat flag is
set. GitHub issue 1239.
This commit is contained in:
parent
623f4b12d3
commit
e97daead43
|
@ -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
|
* The prefix always takes precedence and forces a switch to the prefix
|
||||||
* table, unless we are already there.
|
* table, unless we are already there.
|
||||||
*/
|
*/
|
||||||
|
retry:
|
||||||
key0 = (key & ~KEYC_XTERM);
|
key0 = (key & ~KEYC_XTERM);
|
||||||
if ((key0 == (key_code)options_get_number(s->options, "prefix") ||
|
if ((key0 == (key_code)options_get_number(s->options, "prefix") ||
|
||||||
key0 == (key_code)options_get_number(s->options, "prefix2")) &&
|
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;
|
flags = c->flags;
|
||||||
|
|
||||||
retry:
|
|
||||||
/* Log key table. */
|
/* Log key table. */
|
||||||
if (wp == NULL)
|
if (wp == NULL)
|
||||||
log_debug("key table %s (no pane)", table->name);
|
log_debug("key table %s (no pane)", table->name);
|
||||||
|
|
Loading…
Reference in New Issue