[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-ebc06183d4e3remotes/trunk
parent
a62ecb6449
commit
865eded304
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue