Do not set the history flag if there is no history.

This commit is contained in:
nicm 2020-03-19 13:46:10 +00:00
parent e8273a993e
commit ce61bf931b

5
grid.c
View File

@ -258,7 +258,10 @@ grid_create(u_int sx, u_int sy, u_int hlimit)
gd->sx = sx;
gd->sy = sy;
gd->flags = GRID_HISTORY;
if (hlimit != 0)
gd->flags = GRID_HISTORY;
else
gd->flags = 0;
gd->hscrolled = 0;
gd->hsize = 0;