aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.cxx
diff options
context:
space:
mode:
authorJohn Ehresman <unknown>2022-06-10 11:18:32 +1000
committerJohn Ehresman <unknown>2022-06-10 11:18:32 +1000
commit336e893d28d6ba1dadf02133533d362b3d4dfdd4 (patch)
treefcacd12470d521d841343177ae204aca54137f71 /src/EditView.cxx
parente86259bf4c93bc127ef2ffe2d7fce87921ee83ba (diff)
downloadscintilla-mirror-336e893d28d6ba1dadf02133533d362b3d4dfdd4.tar.gz
Bug [#2334] Fix hiding selection when selection layer is SC_LAYER_UNDER_TEXT.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r--src/EditView.cxx4
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);