return removed folds from removeFolds

This commit is contained in:
nightwing 2013-12-29 19:57:49 +04:00
commit 3f7f325777

View file

@ -454,13 +454,16 @@ function Folding() {
if (expandInner) {
this.removeFolds(folds);
} else {
// TODO: might need to remove and add folds in one go instead of using
var subFolds = folds;
// TODO: might be better to remove and add folds in one go instead of using
// expandFolds several times.
while (folds.length) {
this.expandFolds(folds);
folds = this.getFoldsInRangeList(range);
while (subFolds.length) {
this.expandFolds(subFolds);
subFolds = this.getFoldsInRangeList(range);
}
}
if (folds.length)
return folds;
};
/*