mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
While here, maximum percentage is 100 not INT_MAX. Oops.
This commit is contained in:
parent
8820aa9f65
commit
1df3355438
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||
return (-1);
|
||||
}
|
||||
} else if (args_has(args, 'p')) {
|
||||
percentage = args_strtonum(args, 'p', 0, INT_MAX, &cause);
|
||||
percentage = args_strtonum(args, 'p', 0, 100, &cause);
|
||||
if (cause != NULL) {
|
||||
ctx->error(ctx, "percentage %s", cause);
|
||||
xfree(cause);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue