diff options
author | nicm <nicm> | 2021-10-15 10:39:22 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-10-15 10:39:22 +0000 |
commit | 537302f2c17849058cf6080f5735efe86d21a239 (patch) | |
tree | e100bf705686a375424d02fbdccda9469c54fb08 | |
parent | add20637f256c0118d3c687d5d1446612d14389a (diff) | |
download | rtmux-537302f2c17849058cf6080f5735efe86d21a239.tar.gz rtmux-537302f2c17849058cf6080f5735efe86d21a239.tar.bz2 rtmux-537302f2c17849058cf6080f5735efe86d21a239.zip |
Do not send any key if -N flag is given even if no other arguments,
fixes problem with repeat in copy mode reported by tb@.
-rw-r--r-- | cmd-send-keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 47fa1caa..46cb37f0 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -203,6 +203,8 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item) } if (count == 0) { + if (args_has(args, 'N')) + return (CMD_RETURN_NORMAL); for (; np != 0; np--) cmd_send_keys_inject_key(item, NULL, event->key); return (CMD_RETURN_NORMAL); |