fix: removeFolds splits foldLine incorrectly
This commit is contained in:
parent
d8a8876254
commit
3dbe128d10
1 changed files with 5 additions and 5 deletions
|
|
@ -368,13 +368,13 @@ function Folding() {
|
||||||
folds.splice(folds.indexOf(fold), 1);
|
folds.splice(folds.indexOf(fold), 1);
|
||||||
} else
|
} else
|
||||||
// The fold goes over more then one row. This means remvoing this fold
|
// The fold goes over more then one row. This means remvoing this fold
|
||||||
// will cause the fold line to get splitted up.
|
// will cause the fold line to get splitted up. newFoldLine is the second part
|
||||||
{
|
{
|
||||||
var newFoldLine = foldLine.split(fold.start.row, fold.start.column);
|
var newFoldLine = foldLine.split(fold.start.row, fold.start.column);
|
||||||
newFoldLine.folds.shift();
|
folds = newFoldLine.folds;
|
||||||
foldLine.start.row = folds[0].start.row;
|
folds.shift();
|
||||||
foldLine.start.column = folds[0].start.column;
|
newFoldLine.start.row = folds[0].start.row;
|
||||||
this.$addFoldLine(newFoldLine);
|
newFoldLine.start.column = folds[0].start.column;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.$useWrapMode) {
|
if (this.$useWrapMode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue