mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-11 16:38:47 +01:00
Sync OpenBSD patchset 991:
Extend history that can be captured to INT_MIN rather than SHRT_MIN. From Chris Johnsen.
This commit is contained in:
parent
d1f0138653
commit
f9b4095188
@ -59,7 +59,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
buf = NULL;
|
buf = NULL;
|
||||||
len = 0;
|
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) {
|
if (cause != NULL) {
|
||||||
top = gd->hsize;
|
top = gd->hsize;
|
||||||
xfree(cause);
|
xfree(cause);
|
||||||
@ -70,7 +70,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
if (top > gd->hsize + gd->sy - 1)
|
if (top > gd->hsize + gd->sy - 1)
|
||||||
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) {
|
if (cause != NULL) {
|
||||||
bottom = gd->hsize + gd->sy - 1;
|
bottom = gd->hsize + gd->sy - 1;
|
||||||
xfree(cause);
|
xfree(cause);
|
||||||
|
Loading…
Reference in New Issue
Block a user