Fixed no commit when opening saved doc
This commit is contained in:
parent
c188da9df9
commit
8131f1262d
|
@ -808,6 +808,7 @@ function Ea(a) {
|
|||
$("#drive-save-state").text("Loaded");
|
||||
this.state.clear();
|
||||
ua(this.state, a, E(this.view, new p(this.view.canvas.width / 2, this.view.canvas.height / 2)));
|
||||
N(this.state);
|
||||
this.D = R(this.state);
|
||||
}.bind(a));
|
||||
}
|
||||
|
|
|
@ -192,6 +192,7 @@ ascii.DriveController.prototype.reloadFileContent = function() {
|
|||
this.state.fromText(content, this.view.screenToCell(new ascii.Vector(
|
||||
this.view.canvas.width / 2,
|
||||
this.view.canvas.height / 2)));
|
||||
this.state.commitDraw();
|
||||
this.cachedText = this.state.outputText();
|
||||
}.bind(this));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue