aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 6c2197312..2ebe1a759 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7132,7 +7132,7 @@ void Editor::FoldAll(int action) {
}
}
if (expanding) {
- cs.SetVisible(0, maxLine, true);
+ cs.SetVisible(0, maxLine-1, true);
for (int line = 0; line < maxLine; line++) {
int levelLine = pdoc->GetLevel(line);
if (levelLine & SC_FOLDLEVELHEADERFLAG) {