aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-19 14:01:31 +0000
committerThomas Adam <thomas@xteddy.org>2020-03-19 14:01:31 +0000
commit17e4f2394a15602100ad72a052cf9b00e77f208a (patch)
treea8b6e59db7a20e49afc64cf46a59a27aeb93245b /grid.c
parent7595b22e723e1a71ff84ba8d5fa9ad12454f501a (diff)
parentce61bf931b1af18064ab84542ee8f4a64e498fed (diff)
downloadrtmux-17e4f2394a15602100ad72a052cf9b00e77f208a.tar.gz
rtmux-17e4f2394a15602100ad72a052cf9b00e77f208a.tar.bz2
rtmux-17e4f2394a15602100ad72a052cf9b00e77f208a.zip
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c5
1 files changed, 4 insertions, 1 deletions
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;