1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-22 12:58:48 +00:00

tmux unlimited history-limit

This commit is contained in:
yash-fn 2025-03-14 16:41:25 -05:00
parent d4b8635f50
commit db0c566ad9
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

@ -587,7 +587,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",