1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-05 07:38:49 +00:00
This commit is contained in:
Yash 2025-03-29 08:44:06 +05:30 committed by GitHub
commit ac140cfc2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
grid.c
View File

@ -374,7 +374,7 @@ grid_collect_history(struct grid *gd)
{
u_int ny;
if (gd->hsize == 0 || gd->hsize < gd->hlimit)
if (gd->hlimit < 0 || gd->hsize == 0 || gd->hsize < gd->hlimit)
return;
ny = gd->hlimit / 10;

View File

@ -594,7 +594,7 @@ const struct options_table_entry options_table[] = {
{ .name = "history-limit",
.type = OPTIONS_TABLE_NUMBER,
.scope = OPTIONS_TABLE_SESSION,
.minimum = 0,
.minimum = -INT_MAX,
.maximum = INT_MAX,
.default_num = 2000,
.unit = "lines",