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;
|
var removedFolds = null;
|
||||||
|
|
||||||
if (action.indexOf("Lines") != -1) {
|
if (action.indexOf("Lines") != -1) {
|
||||||
if (action == "insertLines") {
|
if (e.data.lines) {
|
||||||
lastRow = firstRow + (e.data.lines.length);
|
if (action == "insertLines" && e.data.lines) {
|
||||||
} else {
|
lastRow = firstRow + (e.data.lines.length);
|
||||||
lastRow = firstRow;
|
} else {
|
||||||
|
lastRow = firstRow;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
len = e.data.lines ? e.data.lines.length : lastRow - firstRow;
|
len = e.data.lines ? e.data.lines.length : lastRow - firstRow;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue