summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2021-10-15 10:39:22 +0000
committernicm <nicm>2021-10-15 10:39:22 +0000
commit537302f2c17849058cf6080f5735efe86d21a239 (patch)
treee100bf705686a375424d02fbdccda9469c54fb08 /cmd-send-keys.c
parentadd20637f256c0118d3c687d5d1446612d14389a (diff)
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@.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c2
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);