When using setText(), replace the entire existing text of the pad,

rather than replacing all except the last letter.
This commit is contained in:
Xavid 2015-05-05 14:14:25 -04:00
parent a5872f536b
commit 5e64c292a4
2 changed files with 5 additions and 5 deletions

View file

@ -290,7 +290,7 @@ Pad.prototype.setText = function setText(newText) {
var oldText = this.text();
//create the changeset
var changeset = Changeset.makeSplice(oldText, 0, oldText.length-1, newText);
var changeset = Changeset.makeSplice(oldText, 0, oldText.length, newText);
//append the changeset
this.appendRevision(changeset);