Merge pull request #259 from slap-editor/issue-258

fix(save): closes #258
This commit is contained in:
Dan Kaplun 2015-12-24 01:57:15 -05:00
commit a28fa4c249

View File

@ -88,9 +88,10 @@ Pane.prototype.requestClose = function () {
Pane.prototype.save = function (path) {
var self = this;
var header = self.screen.slap.header;
var slap = self.screen.slap;
var header = slap.header;
var editor = self.editor;
return editor.save(path)
return editor.save(path, slap.fileBrowser.cwd)
.tap(function () { header.message("saved to " + editor.textBuf.getPath(), 'success'); })
.catch(function (err) {
switch ((err.cause || err).code) {