diff options
author | nyamatongwe <unknown> | 2013-05-17 13:21:38 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-17 13:21:38 +1000 |
commit | 3ccd0b6506170ca804e5476a9a90f0aeee33d424 (patch) | |
tree | 4071409cc36e8a7959b887fc8c66e440c1da390b /src | |
parent | 4a422c9d2ee2eead7584cab7f41527a7a7380716 (diff) | |
download | scintilla-mirror-3ccd0b6506170ca804e5476a9a90f0aeee33d424.tar.gz |
Fix fold all to show lines instead of going past end which then failed.
Diffstat (limited to 'src')
-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 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) { |