mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed position for empty border effect to match caret position
This commit is contained in:
@@ -707,11 +707,17 @@ class EditorPainter implements TextDrawingCallback {
|
||||
float startX = ranges.get(i);
|
||||
float endX = ranges.get(i + 1);
|
||||
if (startX == endX) {
|
||||
endX++;
|
||||
if (startX > 0) {
|
||||
startX--;
|
||||
}
|
||||
else {
|
||||
endX++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
endX--;
|
||||
}
|
||||
ranges.set(i, startX);
|
||||
ranges.set(i + 1, endX);
|
||||
}
|
||||
return ranges;
|
||||
|
||||
Reference in New Issue
Block a user