Limit the history to hlimit not hlimit - 1. This makes a history-limit setting

of 0 work as expected.
pull/1/head
Nicholas Marriott 2009-07-11 20:11:18 +00:00
parent e415ead361
commit bd098c273b
1 changed files with 1 additions and 1 deletions

2
grid.c
View File

@ -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)