Commit ba9a2109 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.

(cherry picked from commit 7b2a751b)
parent 7b769ff1
......@@ -423,6 +423,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