Skip to content
GitLab
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
717b615a
Commit
717b615a
authored
Sep 30, 2021
by
Luis Javier Merino
Browse files
Cursor PreviousLine should respect the top margin
From esctest: CPLTests.test_CPL_StopsAtTopMarginInScrollRegion
parent
d2437fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
717b615a
...
...
@@ -155,7 +155,8 @@ void Screen::cursorPreviousLine(int n)
n
=
1
;
// Default
}
_cuX
=
0
;
_cuY
=
qMax
(
0
,
_cuY
-
n
);
const
int
stop
=
_cuY
<
_topMargin
?
0
:
_topMargin
;
_cuY
=
qMax
(
stop
,
_cuY
-
n
);
}
void
Screen
::
cursorRight
(
int
n
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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