aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-02-25 01:56:13 +0000
committernyamatongwe <devnull@localhost>2008-02-25 01:56:13 +0000
commit3cd45bc32688c9a031469bfd734b1a0add3d4704 (patch)
treefc20af871063953ae95436d0b6e837511e8feac8
parent0166dba6ccf4777d1daa763fb5cf09d64148d9d5 (diff)
downloadscintilla-mirror-3cd45bc32688c9a031469bfd734b1a0add3d4704.tar.gz
Fixed bug #1894195 where whitespace background was not being
displayed on wrapped lines.
-rw-r--r--src/Editor.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 89ff5b2ad..db46cc13d 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2389,8 +2389,10 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
if (ll->chars[cpos + startseg] == ' ') {
if (drawWhitespaceBackground &&
(!inIndentation || vsDraw.viewWhitespace == wsVisibleAlways)) {
- PRectangle rcSpace(ll->positions[cpos + startseg] + xStart, rcSegment.top,
- ll->positions[cpos + startseg + 1] + xStart, rcSegment.bottom);
+ PRectangle rcSpace(ll->positions[cpos + startseg] + xStart - subLineStart,
+ rcSegment.top,
+ ll->positions[cpos + startseg + 1] + xStart - subLineStart,
+ rcSegment.bottom);
surface->FillRectangle(rcSpace, vsDraw.whitespaceBackground.allocated);
}
} else {