mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 12:05:21 +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:
parent
cc720e2ef8
commit
d18c99e50b
1 changed files with 10 additions and 1 deletions
|
@ -163,7 +163,16 @@ abstract public class AbstractTextCanvasModel implements ITextCanvasModel {
|
||||||
if(t-fCursorTime>500) {
|
if(t-fCursorTime>500) {
|
||||||
fShowCursor=!fShowCursor;
|
fShowCursor=!fShowCursor;
|
||||||
fCursorTime=t;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue