fix error when inserting text inside code
This commit is contained in:
parent
1bd38560b4
commit
10860343ab
1 changed files with 7 additions and 5 deletions
|
|
@ -192,13 +192,15 @@ function FoldLine(foldData, folds) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.split = function(row, column) {
|
this.split = function(row, column) {
|
||||||
var fold = this.getNextFoldTo(row, column).fold;
|
var pos = this.getNextFoldTo(row, column);
|
||||||
|
|
||||||
|
if (!pos || pos.kind == "inside")
|
||||||
|
return null;
|
||||||
|
|
||||||
|
var fold = pos.fold;
|
||||||
var folds = this.folds;
|
var folds = this.folds;
|
||||||
var foldData = this.foldData;
|
var foldData = this.foldData;
|
||||||
|
|
||||||
if (!fold)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
var i = folds.indexOf(fold);
|
var i = folds.indexOf(fold);
|
||||||
var foldBefore = folds[i - 1];
|
var foldBefore = folds[i - 1];
|
||||||
this.end.row = foldBefore.end.row;
|
this.end.row = foldBefore.end.row;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue