aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authornkmathew <devnull@localhost>2015-09-26 10:12:42 +1000
committernkmathew <devnull@localhost>2015-09-26 10:12:42 +1000
commitc52b08fd5737a4abebb6db7af8533fa6ce1238f5 (patch)
tree0fefba0126c7ad4e4dc3c5ce8749f1dd13d08943 /src/ViewStyle.cxx
parentd2a510c1e8460086dcafe474d40e80d6784caff3 (diff)
downloadscintilla-mirror-c52b08fd5737a4abebb6db7af8533fa6ce1238f5.tar.gz
Whitespace may be made visible just in indentation.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index e8bf51363..9416ddcc6 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -512,6 +512,12 @@ bool ViewStyle::WhitespaceBackgroundDrawn() const {
return (viewWhitespace != wsInvisible) && (whitespaceColours.back.isSet);
}
+bool ViewStyle::WhiteSpaceVisible(bool inIndent) const {
+ return !inIndent && viewWhitespace == wsVisibleAfterIndent ||
+ inIndent && viewWhitespace == wsVisibleOnlyInIndent ||
+ viewWhitespace == wsVisibleAlways;
+}
+
ColourDesired ViewStyle::WrapColour() const {
if (whitespaceColours.fore.isSet)
return whitespaceColours.fore;