diff options
author | nyamatongwe <unknown> | 2009-12-19 22:20:20 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-12-19 22:20:20 +0000 |
commit | d8ef472146a4588613bab588226b9b7b9c06cbac (patch) | |
tree | b8c16d15a3223172c02f57ebf2cd0364d4def1d2 /src | |
parent | ddb98cb2f9eca8ca9ea8842db2672ec350f9548e (diff) | |
download | scintilla-mirror-d8ef472146a4588613bab588226b9b7b9c06cbac.tar.gz |
Fix for bug #2914691 Wrong background colour when using coloured lines with
virtual space.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
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++) { |