Also invalidate the cursor position when it remains the same, but the

screen was scrolled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25981 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-06-16 23:13:58 +00:00
parent 00b997a8f8
commit 0dd40534eb
1 changed files with 1 additions and 1 deletions

View File

@ -1731,7 +1731,7 @@ TermView::_SynchronizeWithTextBuffer(int32 visibleDirtyTop,
// invalidate cursor, if it changed
TermPos cursor = fTextBuffer->Cursor();
if (fCursor != cursor) {
if (fCursor != cursor || linesScrolled != 0) {
// Before we scrolled we did already invalidate the old cursor.
if (!doScroll)
_InvalidateTextRect(fCursor.x, fCursor.y, fCursor.x, fCursor.y);