summaryrefslogtreecommitdiffstats
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-12-27 13:46:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-12-27 13:46:26 +0000
commit5db593e5c2dc9ccfb279d0855dd92cc9923ffbed (patch)
treec2c2cdce994db7da3320bc7b711035ee531116ab /cmd-capture-pane.c
parentd71e4b9aca9c2c07832b9f12f63360a4b84a973a (diff)
Extend history that can be captured to INT_MIN rather than
SHRT_MIN. From Chris Johnsen.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index 32c6007b..7c974f1f 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -59,7 +59,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
buf = NULL;
len = 0;
- n = args_strtonum(args, 'S', SHRT_MIN, SHRT_MAX, &cause);
+ n = args_strtonum(args, 'S', INT_MIN, SHRT_MAX, &cause);
if (cause != NULL) {
top = gd->hsize;
xfree(cause);
@@ -70,7 +70,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
if (top > gd->hsize + gd->sy - 1)
top = gd->hsize + gd->sy - 1;
- n = args_strtonum(args, 'E', SHRT_MIN, SHRT_MAX, &cause);
+ n = args_strtonum(args, 'E', INT_MIN, SHRT_MAX, &cause);
if (cause != NULL) {
bottom = gd->hsize + gd->sy - 1;
xfree(cause);