summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2021-10-19 12:51:43 +0000
committernicm <nicm>2021-10-19 12:51:43 +0000
commitf26b8c57ffb253db08072629b7c969c021580492 (patch)
treeed14bd24a6dc276f0f4b29c5b52a73e20a65a73b /cmd-send-keys.c
parent51ff77d47be80d59b1e30e55bd75788fcc22e4bf (diff)
Same as -N, don't send if 0 arguments and -R.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 46cb37f0..d6a95434 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -203,7 +203,7 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
}
if (count == 0) {
- if (args_has(args, 'N'))
+ if (args_has(args, 'N') || args_has(args, 'R'))
return (CMD_RETURN_NORMAL);
for (; np != 0; np--)
cmd_send_keys_inject_key(item, NULL, event->key);