mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Extend history that can be captured to INT_MIN rather than
SHRT_MIN. From Chris Johnsen.
This commit is contained in:
parent
d71e4b9aca
commit
5db593e5c2
@ -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…
x
Reference in New Issue
Block a user