diff options
| -rw-r--r-- | doc/ScintillaHistory.html | 5 | ||||
| -rw-r--r-- | src/Editor.cxx | 3 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index b14d2980c..e8d806040 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -521,6 +521,11 @@  	<a href="http://sourceforge.net/p/scintilla/bugs/1849/">Bug #1849</a>.  	</li>  	<li> +	Fix fold expand when some child text not styled. +	Caused by fixes for Bug #1799. +	<a href="http://sourceforge.net/p/scintilla/bugs/1842/">Bug #1842</a>. +	</li> +	<li>  	Fix scroll bar size warnings on GTK+ caused by #1831.  	<a href="http://sourceforge.net/p/scintilla/bugs/1851/">Bug #1851</a>.  	</li> 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  | 
