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
d2437fbb
Commit
d2437fbb
authored
Sep 30, 2021
by
Luis Javier Merino
Browse files
Cursor NextLine should respect the bottom margin
From esctest: CNLTests.test_CNL_StopsAtBottomMarginInScrollRegion
parent
56691288
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
d2437fbb
...
...
@@ -144,7 +144,8 @@ void Screen::cursorNextLine(int n)
n
=
MAX_SCREEN_ARGUMENT
;
}
_cuX
=
0
;
_cuY
=
qMin
(
_cuY
+
n
,
_lines
-
1
);
const
int
stop
=
_cuY
>
_bottomMargin
?
_lines
-
1
:
_bottomMargin
;
_cuY
=
qMin
(
stop
,
_cuY
+
n
);
}
void
Screen
::
cursorPreviousLine
(
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