From 0dd40534ebf04da76712f7d405aec3f21bbacce3 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 16 Jun 2008 23:13:58 +0000 Subject: [PATCH] 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 --- src/apps/terminal/TermView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp index af9c9eae67..386b002ef5 100644 --- a/src/apps/terminal/TermView.cpp +++ b/src/apps/terminal/TermView.cpp @@ -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);