diff options
Diffstat (limited to 'src/EditView.cxx')
| -rw-r--r-- | src/EditView.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
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)) { |
