diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-03-19 13:46:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-03-19 13:46:11 +0000 |
commit | 995096b1833d207c16d9568961c882fa09bb5214 (patch) | |
tree | 4b78615b17415353673692f725a6ce0be3413e10 /usr.bin/tmux/grid.c | |
parent | b8df455dc0e8021021a72f362b4bc52a480aea0a (diff) |
Do not set the history flag if there is no history.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r-- | usr.bin/tmux/grid.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index 3cebc7f42e9..5328795d7fe 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.101 2019/12/03 10:47:22 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.102 2020/03/19 13:46:10 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; |