Ok, this time for real.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9083 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2004-09-27 23:10:13 +00:00
parent c3c637606a
commit 91f868aeb7
1 changed files with 5 additions and 3 deletions

View File

@ -3088,9 +3088,11 @@ BTextView::HandlePageKey(uint32 inPageKey)
if (CurrentLine() + 1 < fLines->NumLines()) {
line = (*fLines)[CurrentLine() + 1];
fClickOffset = PreviousInitialByte(line->offset);
} else
fClickOffset = fText->Length() - 1;
} else {
fClickOffset = fText->Length();
if (ByteAt(fClickOffset - 1) == B_ENTER)
fClickOffset--;
}
ScrollToOffset(fClickOffset);
if (shiftDown) {
if (fClickOffset >= fSelEnd)