diff --git a/src/ace/Document.js b/src/ace/Document.js index 6192799f..231b8de8 100644 --- a/src/ace/Document.js +++ b/src/ace/Document.js @@ -381,7 +381,7 @@ ace.Document = function(text, mode) { this.$insertLines(firstRow, lines); var addedRows = lastRow - firstRow + 1; - this.fireChangeEvent(firstRow, lastRow+addedRows); + this.fireChangeEvent(firstRow); return addedRows; };