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 {
|
||||
lastRow = firstRow;
|
||||
}
|
||||
len = e.data.lines.length;
|
||||
len = e.data.lines ? e.data.lines.length : lastRow - firstRow;
|
||||
} else {
|
||||
len = lastRow - firstRow;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue