[BUG_FIXED] Fix fold all command bug (which folds partially).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1042 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 2013-05-16 18:19:57 +00:00
parent a62ecb6449
commit 865eded304
1 changed files with 1 additions and 1 deletions

View File

@ -1745,7 +1745,7 @@ void ScintillaEditView::foldAll(bool mode)
int level = execute(SCI_GETFOLDLEVEL, line);
if (level & SC_FOLDLEVELHEADERFLAG)
if (isFolded(line) != mode)
execute(SCI_TOGGLEFOLD, line);
fold(line, mode);
}
}