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:
@@ -3088,9 +3088,11 @@ BTextView::HandlePageKey(uint32 inPageKey)
|
|||||||
if (CurrentLine() + 1 < fLines->NumLines()) {
|
if (CurrentLine() + 1 < fLines->NumLines()) {
|
||||||
line = (*fLines)[CurrentLine() + 1];
|
line = (*fLines)[CurrentLine() + 1];
|
||||||
fClickOffset = PreviousInitialByte(line->offset);
|
fClickOffset = PreviousInitialByte(line->offset);
|
||||||
} else
|
} else {
|
||||||
fClickOffset = fText->Length() - 1;
|
fClickOffset = fText->Length();
|
||||||
|
if (ByteAt(fClickOffset - 1) == B_ENTER)
|
||||||
|
fClickOffset--;
|
||||||
|
}
|
||||||
ScrollToOffset(fClickOffset);
|
ScrollToOffset(fClickOffset);
|
||||||
if (shiftDown) {
|
if (shiftDown) {
|
||||||
if (fClickOffset >= fSelEnd)
|
if (fClickOffset >= fSelEnd)
|
||||||
|
|||||||
Reference in New Issue
Block a user