aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-11-01 10:47:34 +0000
committernyamatongwe <devnull@localhost>2009-11-01 10:47:34 +0000
commita307f5df25fbf8f4e545bdd74a7da6a466568497 (patch)
tree63eb822cd4e3836e6f53045066cadfde3980d484
parentdbe307598244e62b0f16c39eee078f1c19fa396c (diff)
downloadscintilla-mirror-a307f5df25fbf8f4e545bdd74a7da6a466568497.tar.gz
Fix for bug #2890105, last line has EOLFilled style but blank space before
background colour.
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ce3d467f4..727429921 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2318,6 +2318,8 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin
surface->FillRectangle(rcSegment, background);
} else if (line < pdoc->LinesTotal() - 1) {
surface->FillRectangle(rcSegment, vsDraw.styles[ll->styles[ll->numCharsInLine] & styleMask].back.allocated);
+ } else if (vsDraw.styles[ll->styles[ll->numCharsInLine] & styleMask].eolFilled) {
+ surface->FillRectangle(rcSegment, vsDraw.styles[ll->styles[ll->numCharsInLine] & styleMask].back.allocated);
} else {
surface->FillRectangle(rcSegment, vsDraw.styles[STYLE_DEFAULT].back.allocated);
}