aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authornkmathew <unknown>2015-09-26 10:12:42 +1000
committernkmathew <unknown>2015-09-26 10:12:42 +1000
commit3491002fbd32adbec743cf5ac4400fc463eab5f3 (patch)
treeba31af9776a66f69843ecfcf178e768aeaf0ae74 /src/ViewStyle.cxx
parentcaf87bd4ad84b0570ea087dc34f32cee986bb43a (diff)
downloadscintilla-mirror-3491002fbd32adbec743cf5ac4400fc463eab5f3.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;