From 975f516f516600cf373a1e9642734ccbc7f68197 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 14 Jul 2009 14:47:32 +0000 Subject: [PATCH] The scroll region cannot be one line only, ignore attempts to make it so. --- screen-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */