From 4405f60a2107d3873724930af061a49b03d4b8e7 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 18 Feb 2026 13:40:43 +1100 Subject: When a line end is not selected, change the colour of the rectangle that indicates the line end is selected to white space background instead of previous character's background except for EOL filled style. --- src/EditView.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/EditView.cxx') diff --git a/src/EditView.cxx b/src/EditView.cxx index 9ebf9a759..b2895d97c 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -1107,13 +1107,8 @@ void EditView::DrawEOL(Surface *surface, const EditModel &model, const ViewStyle base = selectionBack; } else if (background) { base = *background; - } else { - const Style &styleLast = vsDraw.styles[ll->LastStyle()]; - if (!lastLine || styleLast.eolFilled) { - // TODO: the !lastLine|| seems wrong but it has been included - // since at least 2009. https://sourceforge.net/p/scintilla/code/ci/1b042b53bbde/ - base = styleLast.back; - } + } else if (const Style &styleLast = vsDraw.styles[ll->LastStyle()]; styleLast.eolFilled) { + base = styleLast.back; } surface->FillRectangleAligned(rcEOLIsSelected, Fill(base.Opaque())); if (drawEOLSelection && (vsDraw.selection.layer != Layer::Base)) { -- cgit v1.2.3