Merge pull request #11 from bibodha/saveFix

Fixed error being thrown if path was not provided while saving a new file
This commit is contained in:
Loic Nageleisen 2015-02-20 20:18:11 +01:00
commit 5a7ff39d14

View file

@ -1,5 +1,9 @@
class Ex class Ex
write: -> atom.workspace.getActiveEditor().save() write: ->
if atom.workspace.getActiveTextEditor().getPath() isnt undefined
atom.workspace.getActiveEditor().save()
else
atom.workspace.getActivePane().saveActiveItemAs()
w: => @write() w: => @write()
module.exports = Ex module.exports = Ex