Merge 93a56c75ce into 25ce6b59fd
This commit is contained in:
commit
cd2c102529
2 changed files with 2 additions and 6 deletions
|
|
@ -227,11 +227,7 @@ class Ex
|
|||
if not saved and fullPath?
|
||||
if not force and fs.existsSync(fullPath)
|
||||
throw new CommandError("File exists (add ! to override)")
|
||||
if saveas
|
||||
editor = atom.workspace.getActiveTextEditor()
|
||||
trySave(-> editor.saveAs(fullPath, editor)).then(deferred.resolve)
|
||||
else
|
||||
trySave(-> saveAs(fullPath, editor)).then(deferred.resolve)
|
||||
trySave(-> editor.saveAs(fullPath, editor)).then(deferred.resolve)
|
||||
|
||||
deferred.promise
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue