[editor] IJPL-52261 paint left extension correctly

GitOrigin-RevId: 1fae940fccd872c232ff8c7ebc538d5e76e42f20
This commit is contained in:
Stanislav Alekseev
2026-02-03 19:51:32 +00:00
committed by intellij-monorepo-bot
parent 7defd6a99b
commit 46cfb3792a
@@ -448,7 +448,7 @@ public final class EditorPainter implements TextDrawingCallback {
boolean isSelection = result.second;
myBetweenLinesAttributes.put(visualLine, attributes);
if (isSelection && shouldUseNewSelection() ) {
if (isSelection && shouldUseNewSelection()) {
mySelectionLinePainter.paintAllBlockInlaysAbove(visualLine);
} else {
paintBackground(attributes, startX, prevY, endX - startX, y - prevY);
@@ -469,7 +469,7 @@ public final class EditorPainter implements TextDrawingCallback {
&& it.isInSelection()
&& myEditor.isRightAligned()) {
mySelectionLinePainter.paintSelection(new Rectangle2D.Float(
startX - selectionExtensionWidth, y,
xEnd - selectionExtensionWidth, y,
selectionExtensionWidth, myLineHeight
));
}