Fix format/compact/repair clearing history in mode code

This commit is contained in:
jos 2019-07-27 14:31:53 +02:00
parent 3f182a1f04
commit ea02a5be68
1 changed files with 3 additions and 3 deletions

View File

@ -625,7 +625,7 @@ textmode.destroy = function () {
textmode.compact = function () {
var json = this.get();
var text = JSON.stringify(json);
this.setText(text);
this._setText(text, false);
};
/**
@ -634,7 +634,7 @@ textmode.compact = function () {
textmode.format = function () {
var json = this.get();
var text = JSON.stringify(json, null, this.indentation);
this.setText(text);
this._setText(text, false);
};
/**
@ -643,7 +643,7 @@ textmode.format = function () {
textmode.repair = function () {
var text = this.getText();
var repairedText = util.repair(text);
this.setText(repairedText);
this._setText(repairedText, false);
};
/**