diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-12-12 02:01:27 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-12-12 02:01:27 +0000 |
commit | dda701d95fd539d7af8f76a8fe9d9cf71691b79a (patch) | |
tree | 06ae794b838b8eed6bd868c77c2fece5dba00c5f | |
parent | a64b7cfe5d20b6193d58903b0ee82aed412071a3 (diff) | |
parent | b851c628f483e29fb57c33cf7fb08b04c187dc32 (diff) | |
download | rtmux-dda701d95fd539d7af8f76a8fe9d9cf71691b79a.tar.gz rtmux-dda701d95fd539d7af8f76a8fe9d9cf71691b79a.tar.bz2 rtmux-dda701d95fd539d7af8f76a8fe9d9cf71691b79a.zip |
Merge branch 'obsd-master'
-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 |