diff --git a/src/history/compact/CompactHistoryType.cpp b/src/history/compact/CompactHistoryType.cpp index bf4f0d67..8a85220f 100644 --- a/src/history/compact/CompactHistoryType.cpp +++ b/src/history/compact/CompactHistoryType.cpp @@ -39,7 +39,7 @@ void CompactHistoryType::scroll(std::unique_ptr &old) const Character line[LINE_SIZE]; int lines = (old != nullptr) ? old->getLines() : 0; - int i = qMax((lines - (int)_maxLines - 1), 0); + int i = qMax((lines - (int)_maxLines), 0); for (; i < lines; i++) { int size = old->getLineLen(i); if (size > LINE_SIZE) {