aboutsummaryrefslogtreecommitdiff
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 44b796ba..47fa1caa 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -202,6 +202,12 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
wp->flags |= (PANE_STYLECHANGED|PANE_REDRAW);
}
+ if (count == 0) {
+ for (; np != 0; np--)
+ cmd_send_keys_inject_key(item, NULL, event->key);
+ return (CMD_RETURN_NORMAL);
+ }
+
for (; np != 0; np--) {
for (i = 0; i < count; i++) {
after = cmd_send_keys_inject_string(item, after, args,