Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
7b2a751b
Commit
7b2a751b
authored
May 05, 2021
by
Carlos Alves
Committed by
Kurt Hindenburg
May 05, 2021
Browse files
Fix Screen::_cuY position inside screen
Keep _cuY position inside max screen lines in AppScreen mode.
parent
0ecc366c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
7b2a751b
...
...
@@ -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
;
}
...
...
Carlos Alves
@carlosbalves
mentioned in commit
ba9a2109
·
May 05, 2021
mentioned in commit
ba9a2109
mentioned in commit ba9a21090c6985bfc652afb2e79c19b4ed77d6fb
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment