Also update the cursor on full invalidation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26030 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-06-19 20:57:35 +00:00
parent 566358a0cf
commit f3c7795744

View File

@ -1633,9 +1633,14 @@ TermView::_SynchronizeWithTextBuffer(int32 visibleDirtyTop,
if (info.invalidateAll) { if (info.invalidateAll) {
Invalidate(); Invalidate();
_UpdateScrollBarRange(); _UpdateScrollBarRange();
fCursor = fTextBuffer->Cursor();
_ActivateCursor(false);
int32 offset = _LineAt(0); int32 offset = _LineAt(0);
fVisibleTextBuffer->SynchronizeWith(fTextBuffer, offset, offset, fVisibleTextBuffer->SynchronizeWith(fTextBuffer, offset, offset,
offset + fTextBuffer->Height() + 2); offset + fTextBuffer->Height() + 2);
info.Reset(); info.Reset();
return; return;
} }