summaryrefslogtreecommitdiffstats
path: root/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-12 17:12:41 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-12 17:12:41 +0000
commit3fb3613d34fc538345d3c21adcff55eab2cb7ef5 (patch)
treeb5135c0363cff9b663a198b237bb81a10f23385d /grid.c
parent30f47dfc5e625bf24d76516b0095407b908528e6 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/grid.c b/grid.c
index 2ddbdcf2..98c59e2c 100644
--- a/grid.c
+++ b/grid.c
@@ -1,4 +1,4 @@
-/* $Id: grid.c,v 1.21 2009-06-25 16:34:50 nicm Exp $ */
+/* $Id: grid.c,v 1.22 2009-07-12 17:12:41 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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)