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:
@@ -1219,7 +1219,7 @@ BasicTerminalBuffer::_Scroll(int32 top, int32 bottom, int32 numLines)
|
|||||||
// TODO: It may be more efficient to actually move the scrolled
|
// TODO: It may be more efficient to actually move the scrolled
|
||||||
// lines only (might depend on the number of scrolled/unscrolled
|
// lines only (might depend on the number of scrolled/unscrolled
|
||||||
// lines).
|
// lines).
|
||||||
for (int32 i = bottom + 1; i < fHeight; i++) {
|
for (int32 i = fHeight - 1; i > bottom; i--) {
|
||||||
std::swap(fScreen[_LineIndex(i)],
|
std::swap(fScreen[_LineIndex(i)],
|
||||||
fScreen[_LineIndex(i + numLines)]);
|
fScreen[_LineIndex(i + numLines)]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user