applied two textview-patches from Blub that fixes #3458:
* Select() did not re-show the caret when it should * GoToLine() must hide/show the caret to avoid drawing artefacts git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29983 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1331,7 +1331,9 @@ void
|
|||||||
BTextView::GoToLine(int32 index)
|
BTextView::GoToLine(int32 index)
|
||||||
{
|
{
|
||||||
_CancelInputMethod();
|
_CancelInputMethod();
|
||||||
|
_HideCaret();
|
||||||
fSelStart = fSelEnd = fClickOffset = OffsetAt(index);
|
fSelStart = fSelEnd = fClickOffset = OffsetAt(index);
|
||||||
|
_ShowCaret();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1507,6 +1509,7 @@ BTextView::Select(int32 startOffset, int32 endOffset)
|
|||||||
Highlight(fSelStart, fSelEnd);
|
Highlight(fSelStart, fSelEnd);
|
||||||
}
|
}
|
||||||
fSelStart = fSelEnd = fClickOffset = startOffset;
|
fSelStart = fSelEnd = fClickOffset = startOffset;
|
||||||
|
_ShowCaret();
|
||||||
} else {
|
} else {
|
||||||
if (fActive) {
|
if (fActive) {
|
||||||
// draw only those ranges that are different
|
// draw only those ranges that are different
|
||||||
|
|||||||
Reference in New Issue
Block a user