mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Changing to the @tznind suggestion.
This commit is contained in:
@@ -468,7 +468,7 @@ namespace Terminal.Gui {
|
||||
public virtual bool MovePageDown ()
|
||||
{
|
||||
var n = (selected + Frame.Height);
|
||||
if (n > source.Count - 1)
|
||||
if (n >= source.Count)
|
||||
n = source.Count - 1;
|
||||
if (n != selected) {
|
||||
selected = n;
|
||||
|
||||
Reference in New Issue
Block a user