From 46cfb3792acbd390b4610b2e438599b424f9084a Mon Sep 17 00:00:00 2001 From: Stanislav Alekseev Date: Tue, 3 Feb 2026 19:40:15 +0200 Subject: [PATCH] [editor] IJPL-52261 paint left extension correctly GitOrigin-RevId: 1fae940fccd872c232ff8c7ebc538d5e76e42f20 --- .../com/intellij/openapi/editor/impl/view/EditorPainter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java index ca32b665db66..4a3ac89bc030 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/view/EditorPainter.java @@ -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 )); }