From ce61bf931b1af18064ab84542ee8f4a64e498fed Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 19 Mar 2020 13:46:10 +0000 Subject: Do not set the history flag if there is no history. --- grid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'grid.c') diff --git a/grid.c b/grid.c index b2031045..9e18a73d 100644 --- a/grid.c +++ b/grid.c @@ -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; -- cgit