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:
parent
d4b8635f50
commit
db0c566ad9
2
grid.c
2
grid.c
@ -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;
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user