diff options
author | nyamatongwe <devnull@localhost> | 2010-08-07 08:44:04 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-08-07 08:44:04 +1000 |
commit | aeac272de9dcc2ba49a8c0662745bc6db98d7be5 (patch) | |
tree | b0c5f4a2edc39545a1c0a259a4c93f7ce12983d5 /lexlib/LexerSimple.cxx | |
parent | 5b919cb63a2bda4fd1ee3529b4cb8a8abee79c33 (diff) | |
download | scintilla-mirror-aeac272de9dcc2ba49a8c0662745bc6db98d7be5.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.cxx | 8 |
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(); + } } |