Fixed no commit when opening saved doc

This commit is contained in:
Lewis Hemens 2014-04-27 15:47:52 +01:00
parent c188da9df9
commit 8131f1262d
2 changed files with 2 additions and 0 deletions

View File

@ -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));
}

View File

@ -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));
};