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 /src/Editor.cxx | |
parent | 77d1370542d24488065909e9d3895c9bd59f7e53 (diff) | |
download | scintilla-mirror-0cccd1e6285dce657e7106cc3ea0cd090a772860.tar.gz |
Bug [#1896]. Ensure folding consistent when fold header added above folded part.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |