diff options
author | nyamatongwe <unknown> | 2013-03-16 10:54:28 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-03-16 10:54:28 +1100 |
commit | 552d8b47de28a5f23f79f31cf15070fe28eca4d9 (patch) | |
tree | 8b4c3ca9aef9aa0b4210e6ae2c99126431b3712b /src | |
parent | 4a382a8edfa89db8ccbd20e3604b5f35d256afce (diff) | |
download | scintilla-mirror-552d8b47de28a5f23f79f31cf15070fe28eca4d9.tar.gz |
Bug: [#1453]. Make subsequent tab markers visible on GTK+.
Patch from Mark Yen at ActiveState with code simplified by Neil.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 8b9084fc5..e79d8383a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3047,12 +3047,6 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis textBack = vsDraw.whitespaceBackground; surface->FillRectangle(rcSegment, textBack); } - if ((vsDraw.viewWhitespace != wsInvisible) || - (inIndentation && vsDraw.viewIndentationGuides != ivNone)) { - if (vsDraw.whitespaceForegroundSet) - textFore = vsDraw.whitespaceForeground; - surface->PenColour(textFore); - } if (inIndentation && vsDraw.viewIndentationGuides == ivReal) { for (int indentCount = (ll->positions[i] + epsilon) / indentWidth; indentCount <= (ll->positions[i + 1] - epsilon) / indentWidth; @@ -3066,6 +3060,9 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis } if (vsDraw.viewWhitespace != wsInvisible) { if (!inIndentation || vsDraw.viewWhitespace == wsVisibleAlways) { + if (vsDraw.whitespaceForegroundSet) + textFore = vsDraw.whitespaceForeground; + surface->PenColour(textFore); PRectangle rcTab(rcSegment.left + 1, rcSegment.top + 4, rcSegment.right - 1, rcSegment.bottom - vsDraw.maxDescent); DrawTabArrow(surface, rcTab, rcSegment.top + vsDraw.lineHeight / 2); |