Same as -N, don't send if 0 arguments and -R.

This commit is contained in:
nicm 2021-10-19 12:51:43 +00:00
parent 51ff77d47b
commit f26b8c57ff

View File

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