diff options
author | nyamatongwe <devnull@localhost> | 2009-07-23 04:46:27 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-23 04:46:27 +0000 |
commit | 9c733f654de0075714f118d890fde8481914a1f1 (patch) | |
tree | b5a50914fff48d23a9a5e0a64d65244afb1d0fdb /src | |
parent | e40fee4ecfeeb5f0fecbb6a10da640a7182f803f (diff) | |
download | scintilla-mirror-9c733f654de0075714f118d890fde8481914a1f1.tar.gz |
Fixed bug where last line was seeing background colour extend past where it
should.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index e2b87446d..764794fb2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2314,8 +2314,10 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin } else { if (overrideBackground) { surface->FillRectangle(rcSegment, background); - } else { + } else if (line < pdoc->LinesTotal() - 1) { surface->FillRectangle(rcSegment, vsDraw.styles[ll->styles[ll->numCharsInLine] & styleMask].back.allocated); + } else { + surface->FillRectangle(rcSegment, vsDraw.styles[STYLE_DEFAULT].back.allocated); } if (!hideSelection && eolInSelection && vsDraw.selbackset && (line < pdoc->LinesTotal() - 1) && (alpha != SC_ALPHA_NOALPHA)) { SimpleAlphaRectangle(surface, rcSegment, SelectionBackground(vsDraw, eolInSelection == 1), alpha); |