From: nicm Date: Thu, 22 Feb 2018 10:58:12 +0000 (+0000) Subject: Check prefix when retrying so it is checked while repeat flag is X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=790270d984ebbfa6c95b7bb28ef14ae0352c234a;p=openbsd Check prefix when retrying so it is checked while repeat flag is set. GitHub issue 1239. --- diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index a9222f156ed..d509d7e9221 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.247 2018/02/05 08:21:54 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.248 2018/02/22 10:58:12 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -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);