From 3ccd0b6506170ca804e5476a9a90f0aeee33d424 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 17 May 2013 13:21:38 +1000 Subject: Fix fold all to show lines instead of going past end which then failed. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3