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 /src | |
parent | e86259bf4c93bc127ef2ffe2d7fce87921ee83ba (diff) | |
download | scintilla-mirror-336e893d28d6ba1dadf02133533d362b3d4dfdd4.tar.gz |
Bug [#2334] Fix hiding selection when selection layer is SC_LAYER_UNDER_TEXT.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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); |