setText: prevent adding useless revision in case the pad text did not

change
pull/5252/head
webzwo0i 2021-10-29 00:54:18 +02:00 committed by Richard Hansen
parent 63de249236
commit f7f5e3dad8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {