diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-09-11 10:08:15 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-09-11 10:08:15 +0100 |
commit | 495e2ed17f1d7b4efbb0f25a6bb8e8d82c6ea7c9 (patch) | |
tree | f3a83b856acc27e6914b2624cce5c434fc0999fb | |
parent | 034b19b734a25d00fd27245412b0cde6b340482e (diff) | |
parent | d8c397d1b7c4c3643c0b4bce0ea7674904a98d49 (diff) |
Merge branch 'master' into 2.6-rc
-rw-r--r-- | grid.c | 4 | ||||
-rw-r--r-- | tmux.1 | 12 |
2 files changed, 12 insertions, 4 deletions
@@ -292,12 +292,14 @@ grid_collect_history(struct grid *gd) { u_int ny; - if (gd->hsize < gd->hlimit) + if (gd->hsize == 0 || gd->hsize < gd->hlimit) return; ny = gd->hlimit / 10; if (ny < 1) ny = 1; + if (ny > gd->hsize) + ny = gd->hsize; /* * Free the lines from 0 to ny then move the remaining lines over @@ -1407,7 +1407,9 @@ specifies the initial sort order: one of or .Ql activity . .Fl f -specifies an initial filter. +specifies an initial filter: the filter is a format - if it evaluates to zero, +the item in the list is not shown, otherwise it is shown. +If a filter would lead to an empty list, it is ignored. .Fl F specifies the format for each item in the list. .Fl N @@ -1464,7 +1466,9 @@ specifies the initial sort order: one of or .Ql time . .Fl f -specifies an initial filter. +specifies an initial filter: the filter is a format - if it evaluates to zero, +the item in the list is not shown, otherwise it is shown. +If a filter would lead to an empty list, it is ignored. .Fl F specifies the format for each item in the tree. .Fl N @@ -4117,7 +4121,9 @@ specifies the initial sort order: one of or .Ql size . .Fl f -specifies an initial filter. +specifies an initial filter: the filter is a format - if it evaluates to zero, +the item in the list is not shown, otherwise it is shown. +If a filter would lead to an empty list, it is ignored. .Fl F specifies the format for each item in the list. .Fl N |