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:
parent
2a30a9e9f1
commit
940901b615
@ -1331,7 +1331,9 @@ void
|
||||
BTextView::GoToLine(int32 index)
|
||||
{
|
||||
_CancelInputMethod();
|
||||
_HideCaret();
|
||||
fSelStart = fSelEnd = fClickOffset = OffsetAt(index);
|
||||
_ShowCaret();
|
||||
}
|
||||
|
||||
|
||||
@ -1507,6 +1509,7 @@ BTextView::Select(int32 startOffset, int32 endOffset)
|
||||
Highlight(fSelStart, fSelEnd);
|
||||
}
|
||||
fSelStart = fSelEnd = fClickOffset = startOffset;
|
||||
_ShowCaret();
|
||||
} else {
|
||||
if (fActive) {
|
||||
// draw only those ranges that are different
|
||||
|
Loading…
x
Reference in New Issue
Block a user