Commit 7b2a751b authored by Carlos Alves's avatar Carlos Alves Committed by Kurt Hindenburg
Browse files

Fix Screen::_cuY position inside screen

Keep _cuY position inside max screen lines in AppScreen mode.
parent 0ecc366c
......@@ -419,6 +419,7 @@ void Screen::setCursorLine(int newLine)
{
if (_currentModes[MODE_AppScreen] == 1) {
_savedState.cursorLine = newLine;
_cuY = qBound(0, _cuY, _lines - 1);
} else {
_cuY = newLine;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment