From 537302f2c17849058cf6080f5735efe86d21a239 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 15 Oct 2021 10:39:22 +0000 Subject: 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@. --- cmd-send-keys.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit