Changing to the @tznind suggestion.

This commit is contained in:
BDisp
2021-05-31 16:48:13 +01:00
parent 9d4b79b7a9
commit fc5cb56fe0

View File

@@ -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;