check for delta.lines

This commit is contained in:
mikedeboer 2011-11-30 18:31:49 +01:00
commit 6e40a7d210

View file

@ -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 {