diff options
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | src/EditView.cxx | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 45ffeefe9..292f4033c 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -620,6 +620,10 @@ <a href="https://sourceforge.net/p/scintilla/bugs/2491/">Bug #2491</a>. </li> <li> + 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. + </li> + <li> On Qt, add const to ScintillaDocument and ScintillaEdit methods. <a href="https://sourceforge.net/p/scintilla/bugs/2494/">Bug #2494</a>. </li> 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)) { |
