diff options
| author | Neil <nyamatongwe@gmail.com> | 2016-08-15 15:42:52 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2016-08-15 15:42:52 +1000 | 
| commit | 82b5df1e6a44a6e814ce9ad207ab5e106dd9de1d (patch) | |
| tree | c0b202e9e43cc0bd2f88ae8392f17ba1812c9aef /src/Editor.cxx | |
| parent | d5de4f3a2b2995f02f60caf09972773203c3c978 (diff) | |
| download | scintilla-mirror-82b5df1e6a44a6e814ce9ad207ab5e106dd9de1d.tar.gz | |
Bug [#1842]. Fix fold expand when some child text not styled.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 125399622..3fbf4b341 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5293,6 +5293,9 @@ void Editor::FoldExpand(int line, int action, int level) {  	if (action == SC_FOLDACTION_TOGGLE) {  		expanding = !cs.GetExpanded(line);  	} +	// Ensure child lines lexed and fold information extracted before +	// flipping the state. +	pdoc->GetLastChild(line, LevelNumber(level));  	SetFoldExpanded(line, expanding);  	if (expanding && (cs.HiddenLines() == 0))  		// Nothing to do | 
