1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-25 07:18: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; u_int ny;
if (gd->hsize == 0 || gd->hsize < gd->hlimit) if (gd->hlimit < 0 || gd->hsize == 0 || gd->hsize < gd->hlimit)
return; return;
ny = gd->hlimit / 10; ny = gd->hlimit / 10;

View File

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