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

bug 206363: [regression] Terminal shows spurious vertical bars around the cursor when typing

https://bugs.eclipse.org/bugs/show_bug.cgi?id=206363
This commit is contained in:
Michael Scharf 2007-10-16 03:57:30 +00:00
parent 60e7a1f2d6
commit 42235e4d5e

View file

@ -163,7 +163,16 @@ abstract public class AbstractTextCanvasModel implements ITextCanvasModel {
if(t-fCursorTime>500) {
fShowCursor=!fShowCursor;
fCursorTime=t;
fireCellRangeChanged(fCursorColumn, fCursorLine, 1, 1);
// on some windows machines, there is some left
// over when updating the cursor .
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=206363
int col=fCursorColumn;
int width=1;
if(col>0) {
col--;
width++;
}
fireCellRangeChanged(col, fCursorLine, width, 1);
}
}
}