mirror of
https://github.com/slap-editor/slap.git
synced 2024-09-11 04:45:47 +03:00
Merge pull request #259 from slap-editor/issue-258
fix(save): closes #258
This commit is contained in:
commit
a28fa4c249
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user