aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-04-13 05:47:39 +0000
committernyamatongwe <unknown>2001-04-13 05:47:39 +0000
commit049a847b1cefe16a352aaa80ea9e40f600bb63a5 (patch)
tree9b28b0e1b73b1d83b4af4a26e598d1f02ea3801c
parent376b42fdf41e062bed954993e04bdf44e38b23a8 (diff)
downloadscintilla-mirror-049a847b1cefe16a352aaa80ea9e40f600bb63a5.tar.gz
Check for fold flag and don't call Fold method if not set as this avoids
checking in the Fold method.
-rw-r--r--src/ScintillaBase.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 4eb0cf7a0..ad2e97c90 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -372,8 +372,10 @@ void ScintillaBase::Colourise(int start, int end) {
if (lexCurrent) { // Should always succeed as null lexer should always be available
lexCurrent->Lex(start, len, styleStart, keyWordLists, styler);
styler.Flush();
- lexCurrent->Fold(start, len, styleStart, keyWordLists, styler);
- styler.Flush();
+ if (styler.GetPropertyInt("fold")) {
+ lexCurrent->Fold(start, len, styleStart, keyWordLists, styler);
+ styler.Flush();
+ }
}
}
#endif