diff options
author | nicm <nicm> | 2016-12-11 22:55:25 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-12-11 22:55:25 +0000 |
commit | b851c628f483e29fb57c33cf7fb08b04c187dc32 (patch) | |
tree | d1ed2f0496f3ff1ad983a8296e00a9bf506fa373 | |
parent | bee95bf378ab45d4671fd086a4dd24b7259cf772 (diff) | |
download | rtmux-b851c628f483e29fb57c33cf7fb08b04c187dc32.tar.gz rtmux-b851c628f483e29fb57c33cf7fb08b04c187dc32.tar.bz2 rtmux-b851c628f483e29fb57c33cf7fb08b04c187dc32.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-- | cmd-send-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 3d63440e..e660cfb3 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -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 |