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
77de29be
Commit
77de29be
authored
Feb 14, 2022
by
Matan Ziv-Av
Committed by
Tomaz Canabrava
Feb 24, 2022
Browse files
A hack to avoid scrolling when not moving the cursor.
parent
9a608fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Screen.cpp
View file @
77de29be
...
...
@@ -1849,7 +1849,7 @@ int Screen::addPlacement(QPixmap pixmap,
addPlacement
(
p
);
int
needScroll
=
qBound
(
0
,
row
+
rows
-
_lines
+
1
,
rows
);
if
(
scrolling
&&
needScroll
>
moveCursor
)
{
if
(
moveCursor
&&
scrolling
&&
needScroll
>
moveCursor
)
{
scrollUp
(
needScroll
-
moveCursor
);
}
if
(
moveCursor
)
{
...
...
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