aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-12-19 22:20:20 +0000
committernyamatongwe <devnull@localhost>2009-12-19 22:20:20 +0000
commitbd4bd3d35536368146e321bbb4536360df570e5e (patch)
treeb8c16d15a3223172c02f57ebf2cd0364d4def1d2
parent3eee5df6adf6adf04cccd0613c794f51d98662a3 (diff)
downloadscintilla-mirror-bd4bd3d35536368146e321bbb4536360df570e5e.tar.gz
Fix for bug #2914691 Wrong background colour when using coloured lines with
virtual space.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a68046b90..e51eb82a3 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2256,7 +2256,7 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin
if (virtualSpace) {
rcSegment.left = xEol + xStart;
rcSegment.right = xEol + xStart + virtualSpace;
- surface->FillRectangle(rcSegment, vsDraw.styles[ll->styles[ll->numCharsInLine] & styleMask].back.allocated);
+ surface->FillRectangle(rcSegment, overrideBackground ? background : vsDraw.styles[ll->styles[ll->numCharsInLine] & styleMask].back.allocated);
if (!hideSelection && ((vsDraw.selAlpha == SC_ALPHA_NOALPHA) || (vsDraw.selAdditionalAlpha == SC_ALPHA_NOALPHA))) {
SelectionSegment virtualSpaceRange(SelectionPosition(pdoc->LineEnd(line)), SelectionPosition(pdoc->LineEnd(line), sel.VirtualSpaceFor(pdoc->LineEnd(line))));
for (size_t r=0; r<sel.Count(); r++) {