From bd098c273b6a8ac6a0d493194cacd2e231bbeefe Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 11 Jul 2009 20:11:18 +0000 Subject: [PATCH] Limit the history to hlimit not hlimit - 1. This makes a history-limit setting of 0 work as expected. --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)