diff options
author | nicm <nicm> | 2020-03-19 13:46:10 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-19 13:46:10 +0000 |
commit | ce61bf931b1af18064ab84542ee8f4a64e498fed (patch) | |
tree | ad87635349b29308590743db4a5bc6fa3cc4497e | |
parent | e8273a993ec79a58ffff16eba17d0551c690c4db (diff) | |
download | rtmux-ce61bf931b1af18064ab84542ee8f4a64e498fed.tar.gz rtmux-ce61bf931b1af18064ab84542ee8f4a64e498fed.tar.bz2 rtmux-ce61bf931b1af18064ab84542ee8f4a64e498fed.zip |
Do not set the history flag if there is no history.
-rw-r--r-- | grid.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |