This commit is contained in:
henteko 2016-08-14 19:51:45 +00:00 committed by GitHub
commit cd2c102529
2 changed files with 2 additions and 6 deletions

View file

@ -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