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@.
This commit is contained in:
nicm 2021-10-15 10:39:22 +00:00
parent add20637f2
commit 537302f2c1

View File

@ -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);