fixed type error when data.lines is not defined
This commit is contained in:
parent
578aeb1241
commit
cb46249e73
1 changed files with 1 additions and 1 deletions
|
|
@ -1021,7 +1021,7 @@ var EditSession = function(text, mode) {
|
||||||
} else {
|
} else {
|
||||||
lastRow = firstRow;
|
lastRow = firstRow;
|
||||||
}
|
}
|
||||||
len = e.data.lines.length;
|
len = e.data.lines ? e.data.lines.length : lastRow - firstRow;
|
||||||
} else {
|
} else {
|
||||||
len = lastRow - firstRow;
|
len = lastRow - firstRow;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue