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:
parent
60e7a1f2d6
commit
42235e4d5e
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue