Commit 04d99f7c authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

Save all lines to history when scrolling multiple lines up

This action should not be performance critical, so scrolling one line n times seems reasonable.
A solution with better performance requires more changes in addHistLine().

This should solve https://bugs.kde.org/show_bug.cgi?id=449233 .
parent c1a5d942
Pipeline #133455 passed with stage
in 3 minutes and 47 seconds
......@@ -1020,10 +1020,12 @@ void Screen::scrollUp(int n)
if (n < 1) {
n = 1; // Default
}
if (_topMargin == 0) {
addHistLine(); // history.history
for (int i = 0; i < n; i++) {
if (_topMargin == 0) {
addHistLine(); // history.history
}
scrollUp(_topMargin, 1);
}
scrollUp(_topMargin, n);
}
QRect Screen::lastScrolledRegion() const
......
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