summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-12-11 22:55:25 +0000
committernicm <nicm@openbsd.org>2016-12-11 22:55:25 +0000
commit70cc35eea80b9326ee72af9f9642f81a9bfa3e17 (patch)
tree03f3218f06e5f426d4a61d3824e19d415d5ead59
parentDocument how an MCS index is represented in ieee80211_radiotap(9). (diff)
downloadwireguard-openbsd-70cc35eea80b9326ee72af9f9642f81a9bfa3e17.tar.xz
wireguard-openbsd-70cc35eea80b9326ee72af9f9642f81a9bfa3e17.zip
-N without arguments needs to set prefix count for the mode command, so
that M-1 etc work. Reported by Theo Buehler.
-rw-r--r--usr.bin/tmux/cmd-send-keys.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c
index e2fa826494d..f5ed7b65a8d 100644
--- a/usr.bin/tmux/cmd-send-keys.c
+++ b/usr.bin/tmux/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-send-keys.c,v 1.35 2016/12/08 22:15:37 nicm Exp $ */
+/* $OpenBSD: cmd-send-keys.c,v 1.36 2016/12/11 22:55:25 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -77,6 +77,8 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
free(cause);
return (CMD_RETURN_ERROR);
}
+ if (args_has(args, 'X') || args->argc == 0)
+ wp->modeprefix = np;
}
if (args_has(args, 'X')) {
@@ -84,7 +86,6 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
cmdq_error(item, "not in a mode");
return (CMD_RETURN_ERROR);
}
- wp->modeprefix = np;
if (!m->valid)
wp->mode->command(wp, c, s, args, NULL);
else