patch by Joshua R. Elsasser: (ticket #4651)

* Fixed upward scrolling of a partial screen which is anchored at line 0.

Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33318 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-09-27 09:26:01 +00:00
parent 8560c5b0f7
commit 8ea060d47f
+1 -1
View File
@@ -1219,7 +1219,7 @@ BasicTerminalBuffer::_Scroll(int32 top, int32 bottom, int32 numLines)
// TODO: It may be more efficient to actually move the scrolled
// lines only (might depend on the number of scrolled/unscrolled
// lines).
for (int32 i = bottom + 1; i < fHeight; i++) {
for (int32 i = fHeight - 1; i > bottom; i--) {
std::swap(fScreen[_LineIndex(i)],
fScreen[_LineIndex(i + numLines)]);
}