diff options
author | nicm <nicm> | 2022-06-07 10:02:19 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-06-07 10:02:19 +0000 |
commit | c07d582e2476db075252998388305f11302a8b23 (patch) | |
tree | bb6cf3c144414f4d6a78996bb10502cac27c82da /cmd-send-keys.c | |
parent | 020c403dff56269d93625970ed41761520afc853 (diff) | |
download | rtmux-c07d582e2476db075252998388305f11302a8b23.tar.gz rtmux-c07d582e2476db075252998388305f11302a8b23.tar.bz2 rtmux-c07d582e2476db075252998388305f11302a8b23.zip |
Expand arguments to some commands where it makes sense, GitHub issue
3204 from Anindya Mukherjee.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r-- | cmd-send-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index d6a95434..e22d94a6 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -151,7 +151,8 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item) char *cause = NULL; if (args_has(args, 'N')) { - np = args_strtonum(args, 'N', 1, UINT_MAX, &cause); + np = args_strtonum_and_expand(args, 'N', 1, UINT_MAX, item, + &cause); if (cause != NULL) { cmdq_error(item, "repeat count %s", cause); free(cause); |