mirror of
https://github.com/tmux/tmux.git
synced 2025-01-22 05:37:07 +00:00
The scroll region cannot be one line only, ignore attempts to make it so.
This commit is contained in:
parent
fe20c0d89e
commit
975f516f51
@ -553,7 +553,7 @@ screen_write_scrollregion(
|
|||||||
rupper = screen_size_y(s) - 1;
|
rupper = screen_size_y(s) - 1;
|
||||||
if (rlower > screen_size_y(s) - 1)
|
if (rlower > screen_size_y(s) - 1)
|
||||||
rlower = screen_size_y(s) - 1;
|
rlower = screen_size_y(s) - 1;
|
||||||
if (rupper > rlower)
|
if (rupper >= rlower) /* cannot be one line */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Cursor moves to top-left. */
|
/* Cursor moves to top-left. */
|
||||||
|
Loading…
Reference in New Issue
Block a user