aboutsummaryrefslogtreecommitdiff
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-06-07 14:01:09 +0100
committerThomas Adam <thomas@xteddy.org>2022-06-07 14:01:09 +0100
commitbe2eb57d6295a72b870841bbb85e65d624c5d87c (patch)
tree3fde58f40fefb97cbf42a10fa961ebdaafe02769 /cmd-send-keys.c
parentafb3a5fe7180f73457346cf12d096497d93aa642 (diff)
parentc07d582e2476db075252998388305f11302a8b23 (diff)
downloadrtmux-be2eb57d6295a72b870841bbb85e65d624c5d87c.tar.gz
rtmux-be2eb57d6295a72b870841bbb85e65d624c5d87c.tar.bz2
rtmux-be2eb57d6295a72b870841bbb85e65d624c5d87c.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c3
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);