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 .
wilder
Matan Ziv-Av 4 years ago committed by Tomaz Canabrava
parent c1a5d942c4
commit 04d99f7cdc
  1. 8
      src/Screen.cpp

@ -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

Loading…
Cancel
Save