diff options
author | John Ehresman <unknown> | 2022-06-10 11:18:32 +1000 |
---|---|---|
committer | John Ehresman <unknown> | 2022-06-10 11:18:32 +1000 |
commit | 336e893d28d6ba1dadf02133533d362b3d4dfdd4 (patch) | |
tree | fcacd12470d521d841343177ae204aca54137f71 | |
parent | e86259bf4c93bc127ef2ffe2d7fce87921ee83ba (diff) | |
download | scintilla-mirror-336e893d28d6ba1dadf02133533d362b3d4dfdd4.tar.gz |
Bug [#2334] Fix hiding selection when selection layer is SC_LAYER_UNDER_TEXT.
-rw-r--r-- | doc/ScintillaHistory.html | 12 | ||||
-rw-r--r-- | src/EditView.cxx | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index c6f3b3779..8cb63f362 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -574,6 +574,18 @@ </table> <h2>Releases</h2> <h3> + <a href="https://www.scintilla.org/scintilla524.zip">Release 5.2.4</a> + </h3> + <ul> + <li> + Released 22 May 2022. + </li> + <li> + Fix hiding selection when selection layer is SC_LAYER_UNDER_TEXT. + <a href="https://sourceforge.net/p/scintilla/bugs/2334/">Bug #2334</a>. + </li> + </ul> + <h3> <a href="https://www.scintilla.org/scintilla523.zip">Release 5.2.3</a> </h3> <ul> diff --git a/src/EditView.cxx b/src/EditView.cxx index 9692593fb..6570d6df3 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2355,7 +2355,9 @@ void EditView::DrawLine(Surface *surface, const EditModel &model, const ViewStyl } if (FlagSet(phase, DrawPhase::text)) { - DrawTranslucentSelection(surface, model, vsDraw, ll, line, rcLine, subLine, lineRange, xStart, tabWidthMinimumPixels, Layer::UnderText); + if (!hideSelection) { + DrawTranslucentSelection(surface, model, vsDraw, ll, line, rcLine, subLine, lineRange, xStart, tabWidthMinimumPixels, Layer::UnderText); + } DrawTranslucentLineState(surface, model, vsDraw, ll, line, rcLine, subLine, Layer::UnderText); DrawForeground(surface, model, vsDraw, ll, lineVisible, rcLine, lineRange, posLineStart, xStart, subLine, background); |