aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-23 04:46:27 +0000
committernyamatongwe <unknown>2009-07-23 04:46:27 +0000
commit4a2c47509b5691277a7e02ca10202bb59f06c19d (patch)
treeb5a50914fff48d23a9a5e0a64d65244afb1d0fdb /src
parent4364cc5abe5d618cd220c3cf2f2fad4bd19a6648 (diff)
downloadscintilla-mirror-4a2c47509b5691277a7e02ca10202bb59f06c19d.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.cxx4
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);