setText: prevent adding useless revision in case the pad text did not
changepull/5252/head
parent
63de249236
commit
f7f5e3dad8
|
@ -258,7 +258,7 @@ Pad.prototype.setText = async function (newText) {
|
|||
}
|
||||
|
||||
// append the changeset
|
||||
await this.appendRevision(changeset);
|
||||
if (newText !== oldText) await this.appendRevision(changeset);
|
||||
};
|
||||
|
||||
Pad.prototype.appendText = async function (newText) {
|
||||
|
|
Loading…
Reference in New Issue