return removed folds from removeFolds
This commit is contained in:
parent
6e254f25a1
commit
3f7f325777
1 changed files with 7 additions and 4 deletions
|
|
@ -454,13 +454,16 @@ function Folding() {
|
||||||
if (expandInner) {
|
if (expandInner) {
|
||||||
this.removeFolds(folds);
|
this.removeFolds(folds);
|
||||||
} else {
|
} 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.
|
// expandFolds several times.
|
||||||
while (folds.length) {
|
while (subFolds.length) {
|
||||||
this.expandFolds(folds);
|
this.expandFolds(subFolds);
|
||||||
folds = this.getFoldsInRangeList(range);
|
subFolds = this.getFoldsInRangeList(range);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (folds.length)
|
||||||
|
return folds;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue