We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6961f37 commit e577a70Copy full SHA for e577a70
1 file changed
lib/ace/document.js
@@ -56,7 +56,7 @@ var Document = function(text) {
56
oop.implement(this, EventEmitter);
57
58
this.setValue = function(text) {
59
- this.remove(new Range(0, 0, this.$lines.length, this.$lines[this.$lines.length-1].length));
+ this.remove(new Range(0, 0, this.$lines.length, this.getLine(this.$lines.length-1).length));
60
this.insertLines(0, this.$split(text));
61
};
62
0 commit comments