aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerSimple.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-08-07 08:44:04 +1000
committernyamatongwe <unknown>2010-08-07 08:44:04 +1000
commit37f01ccb6c5292529100ff2f46e0c7c0b12865c5 (patch)
tree6857ef67d792ad82edbc5b38848c4bbfb7dd1ea2 /lexlib/LexerSimple.cxx
parent25a04e7a1ceb690812120d48aa91cce7f3df53bf (diff)
downloadscintilla-mirror-37f01ccb6c5292529100ff2f46e0c7c0b12865c5.tar.gz
Made it possible to turn folding off again by looking at the "fold" property.
Diffstat (limited to 'lexlib/LexerSimple.cxx')
-rw-r--r--lexlib/LexerSimple.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/lexlib/LexerSimple.cxx b/lexlib/LexerSimple.cxx
index 2e35f19c3..4d0e178ca 100644
--- a/lexlib/LexerSimple.cxx
+++ b/lexlib/LexerSimple.cxx
@@ -49,7 +49,9 @@ void SCI_METHOD LexerSimple::Lex(unsigned int startPos, int lengthDoc, int initS
}
void SCI_METHOD LexerSimple::Fold(unsigned int startPos, int lengthDoc, int initStyle, IDocument *pAccess) {
- Accessor astyler(pAccess, &props);
- module->Fold(startPos, lengthDoc, initStyle, keyWordLists, astyler);
- astyler.Flush();
+ if (props.GetInt("fold")) {
+ Accessor astyler(pAccess, &props);
+ module->Fold(startPos, lengthDoc, initStyle, keyWordLists, astyler);
+ astyler.Flush();
+ }
}