summaryrefslogtreecommitdiffstats
path: root/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-11 20:11:18 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-11 20:11:18 +0000
commitbd098c273b6a8ac6a0d493194cacd2e231bbeefe (patch)
tree419df6a58bd2b393ef49b10507cb924bbd586593 /grid.c
parente415ead361e7b0a9af9290579949cf42f4fa0f00 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grid.c b/grid.c
index 2df28fd7..92683716 100644
--- a/grid.c
+++ b/grid.c
@@ -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)