1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

[206363][regression] Terminal shows spurious vertical bars around the cursor on Vista

This commit is contained in:
Martin Oberhuber 2007-10-16 12:20:58 +00:00
parent 42235e4d5e
commit 8266f8929e

View file

@ -149,7 +149,14 @@ abstract public class AbstractTextCanvasModel implements ITextCanvasModel {
// hide the old cursor! // hide the old cursor!
fShowCursor=false; fShowCursor=false;
// clean the previous cursor // clean the previous cursor
fireCellRangeChanged(fCursorColumn, fCursorLine, 1, 1); // bug 206363: paint also the char to the left and right of the cursor - see also below
int col=fCursorColumn;
int width=2;
if(col>0) {
col--;
width++;
}
fireCellRangeChanged(col, fCursorLine, width, 1);
// the cursor is shown when it moves! // the cursor is shown when it moves!
fShowCursor=true; fShowCursor=true;
fCursorTime=System.currentTimeMillis(); fCursorTime=System.currentTimeMillis();
@ -167,7 +174,7 @@ abstract public class AbstractTextCanvasModel implements ITextCanvasModel {
// over when updating the cursor . // over when updating the cursor .
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=206363 // https://bugs.eclipse.org/bugs/show_bug.cgi?id=206363
int col=fCursorColumn; int col=fCursorColumn;
int width=1; int width=2;
if(col>0) { if(col>0) {
col--; col--;
width++; width++;