check for delta.lines
This commit is contained in:
parent
0d56cbade3
commit
6e40a7d210
1 changed files with 6 additions and 4 deletions
|
|
@ -956,10 +956,12 @@ var EditSession = function(text, mode) {
|
|||
var removedFolds = null;
|
||||
|
||||
if (action.indexOf("Lines") != -1) {
|
||||
if (action == "insertLines") {
|
||||
lastRow = firstRow + (e.data.lines.length);
|
||||
} else {
|
||||
lastRow = firstRow;
|
||||
if (e.data.lines) {
|
||||
if (action == "insertLines" && e.data.lines) {
|
||||
lastRow = firstRow + (e.data.lines.length);
|
||||
} else {
|
||||
lastRow = firstRow;
|
||||
}
|
||||
}
|
||||
len = e.data.lines ? e.data.lines.length : lastRow - firstRow;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue