diff --git a/src/ace/Document.js b/src/ace/Document.js index 2c18fe25..4c359879 100644 --- a/src/ace/Document.js +++ b/src/ace/Document.js @@ -461,7 +461,7 @@ var Document = function(text, mode) { this.remove = function(range, fromUndo) { if (range.isEmpty()) - return; + return range.start; this.$remove(range, fromUndo);