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-capture-pane.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-capture-pane.c')
-rw-r--r-- | cmd-capture-pane.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c index 964f831e..a3e84c46 100644 --- a/cmd-capture-pane.c +++ b/cmd-capture-pane.c @@ -133,7 +133,8 @@ cmd_capture_pane_history(struct args *args, struct cmdq_item *item, if (Sflag != NULL && strcmp(Sflag, "-") == 0) top = 0; else { - n = args_strtonum(args, 'S', INT_MIN, SHRT_MAX, &cause); + n = args_strtonum_and_expand(args, 'S', INT_MIN, SHRT_MAX, + item, &cause); if (cause != NULL) { top = gd->hsize; free(cause); @@ -149,7 +150,8 @@ cmd_capture_pane_history(struct args *args, struct cmdq_item *item, if (Eflag != NULL && strcmp(Eflag, "-") == 0) bottom = gd->hsize + gd->sy - 1; else { - n = args_strtonum(args, 'E', INT_MIN, SHRT_MAX, &cause); + n = args_strtonum_and_expand(args, 'E', INT_MIN, SHRT_MAX, + item, &cause); if (cause != NULL) { bottom = gd->hsize + gd->sy - 1; free(cause); |