From a307f5df25fbf8f4e545bdd74a7da6a466568497 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 1 Nov 2009 10:47:34 +0000 Subject: Fix for bug #2890105, last line has EOLFilled style but blank space before background colour. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); } -- cgit v1.2.3