diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-07-14 14:47:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-07-14 14:47:33 +0000 |
commit | bd166c096c2b6a4ed013cdda4103bca581dabc6b (patch) | |
tree | 4887d185a0128fdca3237bcac22f6c8b50f16d0b /usr.bin/tmux | |
parent | cc4321283dc1c02e4203a80ca61d86b4882444f4 (diff) |
The scroll region cannot be one line only, ignore attempts to make it so.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index 1b78e00c61a..bbe4f4023d0 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.12 2009/07/09 17:57:11 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.13 2009/07/14 14:47:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -553,7 +553,7 @@ screen_write_scrollregion( rupper = screen_size_y(s) - 1; if (rlower > screen_size_y(s) - 1) rlower = screen_size_y(s) - 1; - if (rupper > rlower) + if (rupper >= rlower) /* cannot be one line */ return; /* Cursor moves to top-left. */ |