From fe510045a1dfb3784d578f0361c5e57265434399 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 19 Oct 2021 12:51:43 +0000 Subject: [PATCH] Same as -N, don't send if 0 arguments and -R. --- usr.bin/tmux/cmd-send-keys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c index 9e5adf895fa..f86a284a880 100644 --- a/usr.bin/tmux/cmd-send-keys.c +++ b/usr.bin/tmux/cmd-send-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-send-keys.c,v 1.70 2021/10/15 10:39:22 nicm Exp $ */ +/* $OpenBSD: cmd-send-keys.c,v 1.71 2021/10/19 12:51:43 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -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); -- 2.20.1