summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/grid.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-11 20:11:18 +0000
committernicm <nicm@openbsd.org>2009-07-11 20:11:18 +0000
commit141e2b070cd64a8111e2c35615dbfd40b5838d5d (patch)
tree20c5ad20cc136067efe4de64cb0886f8a6997c9d /usr.bin/tmux/grid.c
parentAdd -r to the synopsis of the paste-buffer command, prompted by jmc. (diff)
downloadwireguard-openbsd-141e2b070cd64a8111e2c35615dbfd40b5838d5d.tar.xz
wireguard-openbsd-141e2b070cd64a8111e2c35615dbfd40b5838d5d.zip
Limit the history to hlimit not hlimit - 1. This makes a history-limit setting
of 0 work as expected.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r--usr.bin/tmux/grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c
index 8a653c1dffa..50f085256dd 100644
--- a/usr.bin/tmux/grid.c
+++ b/usr.bin/tmux/grid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid.c,v 1.5 2009/06/25 06:15:04 nicm Exp $ */
+/* $OpenBSD: grid.c,v 1.6 2009/07/11 20:11:18 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -172,7 +172,7 @@ grid_scroll_line(struct grid *gd)
GRID_DEBUG(gd, "");
- if (gd->hsize >= gd->hlimit - 1) {
+ if (gd->hsize >= gd->hlimit) {
/* If the limit is hit, free the bottom 10% and shift up. */
yy = gd->hlimit / 10;
if (yy < 1)