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 | |
parent | d5de4f3a2b2995f02f60caf09972773203c3c978 (diff) | |
download | scintilla-mirror-82b5df1e6a44a6e814ce9ad207ab5e106dd9de1d.tar.gz |
Bug [#1842]. Fix fold expand when some child text not styled.
-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 |