aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-24 09:00:57 +0000
committernyamatongwe <unknown>2009-07-24 09:00:57 +0000
commit45d45d62cb03b6228f2747b0789590d7d92b72b4 (patch)
treed7a854629f1ca762d10be1c3f11008e8422cd25b
parentc68e9078a88e4d437f80c132c39606d22e6c62e0 (diff)
downloadscintilla-mirror-45d45d62cb03b6228f2747b0789590d7d92b72b4.tar.gz
Hide end of line selection when unfocused.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 764794fb2..d0c270184 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2338,7 +2338,7 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin
} else {
surface->FillRectangle(rcSegment, vsDraw.styles[STYLE_DEFAULT].back.allocated);
}
- if (vsDraw.selEOLFilled && eolInSelection && vsDraw.selbackset && (line < pdoc->LinesTotal() - 1) && (alpha != SC_ALPHA_NOALPHA)) {
+ if (!hideSelection && vsDraw.selEOLFilled && eolInSelection && vsDraw.selbackset && (line < pdoc->LinesTotal() - 1) && (alpha != SC_ALPHA_NOALPHA)) {
SimpleAlphaRectangle(surface, rcSegment, SelectionBackground(vsDraw, eolInSelection == 1), alpha);
}
}