diff --git a/lib/ex.coffee b/lib/ex.coffee index 6d81188..9e61de4 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -1,5 +1,9 @@ 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() module.exports = Ex