diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-11 20:11:18 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-11 20:11:18 +0000 |
commit | bd098c273b6a8ac6a0d493194cacd2e231bbeefe (patch) | |
tree | 419df6a58bd2b393ef49b10507cb924bbd586593 /grid.c | |
parent | e415ead361e7b0a9af9290579949cf42f4fa0f00 (diff) | |
download | rtmux-bd098c273b6a8ac6a0d493194cacd2e231bbeefe.tar.gz rtmux-bd098c273b6a8ac6a0d493194cacd2e231bbeefe.tar.bz2 rtmux-bd098c273b6a8ac6a0d493194cacd2e231bbeefe.zip |
Limit the history to hlimit not hlimit - 1. This makes a history-limit setting
of 0 work as expected.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ grid_scroll_line(struct grid *gd) GRID_DEBUG(gd, ""); - if (gd->hsize >= gd->hlimit - 1) { + if (gd->hsize >= gd->hlimit) { /* If the limit is hit, free the bottom 10% and shift up. */ yy = gd->hlimit / 10; if (yy < 1) |