diff --git a/lib/ex.coffee b/lib/ex.coffee index 5ad6be5..a41a846 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -1,6 +1,7 @@ path = require 'path' +fs = require 'fs-plus' + CommandError = require './command-error' -fs = require 'fs-plus' trySave = (func) -> deferred = Promise.defer() @@ -103,7 +104,7 @@ class Ex if filePath.indexOf(' ') isnt -1 throw new CommandError('Only one file name allowed') - filePath = fs.normalize filePath + filePath = getFullPath filePath atom.workspace.open(filePath)