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;