diff options
author | Neil <nyamatongwe@gmail.com> | 2017-01-19 21:25:16 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-01-19 21:25:16 +1100 |
commit | 0cccd1e6285dce657e7106cc3ea0cd090a772860 (patch) | |
tree | bf34ea26aa7f5bf21a85ffe2bc7edd84f96d2ea3 | |
parent | 77d1370542d24488065909e9d3895c9bd59f7e53 (diff) | |
download | scintilla-mirror-0cccd1e6285dce657e7106cc3ea0cd090a772860.tar.gz |
Bug [#1896]. Ensure folding consistent when fold header added above folded part.
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index e3d0dce25..1236efd7d 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -538,6 +538,10 @@ <a href="http://sourceforge.net/p/scintilla/bugs/1848/">Bug #1848</a>. </li> <li> + Fix folding inconsistency when fold header added above a folded part. + <a href="http://sourceforge.net/p/scintilla/bugs/1896/">Bug #1896</a>. + </li> + <li> SciTE on GTK+ can have a wide divider between the panes with the split.wide property. </li> diff --git a/src/Editor.cxx b/src/Editor.cxx index 8e4ebf18a..29f0681fd 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5500,7 +5500,7 @@ void Editor::FoldChanged(int line, int levelNow, int levelPrev) { if (!(levelNow & SC_FOLDLEVELWHITEFLAG) && (LevelNumber(levelPrev) < LevelNumber(levelNow))) { if (cs.HiddenLines()) { const int parentLine = pdoc->GetFoldParent(line); - if (!cs.GetExpanded(parentLine) && cs.GetExpanded(line)) + if (!cs.GetExpanded(parentLine) && cs.GetVisible(line)) FoldLine(parentLine, SC_FOLDACTION_EXPAND); } } |