The scroll region cannot be one line only, ignore attempts to make it so.

This commit is contained in:
Nicholas Marriott 2009-07-14 14:47:32 +00:00
parent fe20c0d89e
commit 975f516f51

View File

@ -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. */