summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-14 14:47:32 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-14 14:47:32 +0000
commit975f516f516600cf373a1e9642734ccbc7f68197 (patch)
treeabaa76e1915958160a9c65368d3817c61672b0f6 /screen-write.c
parentfe20c0d89ef5b8581c28067496f0f4c545d55ef8 (diff)
The scroll region cannot be one line only, ignore attempts to make it so.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 5a2a3882..59b8b027 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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. */