diff options
| author | nyamatongwe <devnull@localhost> | 2001-04-13 05:47:39 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-04-13 05:47:39 +0000 | 
| commit | 403ba611d3a73760651348d4fb42d0409a2058b3 (patch) | |
| tree | 9b28b0e1b73b1d83b4af4a26e598d1f02ea3801c /src | |
| parent | 6178f5439881439fc5e78d9fac468eb1a23b1353 (diff) | |
| download | scintilla-mirror-403ba611d3a73760651348d4fb42d0409a2058b3.tar.gz | |
Check for fold flag and don't call Fold method if not set as this avoids
checking in the Fold method.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ScintillaBase.cxx | 6 | 
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  | 
