diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:43:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:43:02 +0000 |
commit | 82b45b460e137c33709a2fc8c0ae0b7b88735db2 (patch) | |
tree | 3977471168a899d605c04529b29e0f61217e6e36 | |
parent | 1e574bb70c2770fe5886fd7327966dfc543e3939 (diff) | |
download | rtmux-82b45b460e137c33709a2fc8c0ae0b7b88735db2.tar.gz rtmux-82b45b460e137c33709a2fc8c0ae0b7b88735db2.tar.bz2 rtmux-82b45b460e137c33709a2fc8c0ae0b7b88735db2.zip |
The scroll region cannot be one line only, ignore attempts to make it so.
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c index 5e73a4c1..26c9751b 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.59 2009-07-09 18:08:13 nicm Exp $ */ +/* $Id: screen-write.c,v 1.60 2009-07-15 17:43:02 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. */ |