]> arthur.barton.de Git - atom-ax-pipe.git/blobdiff - lib/pipe.coffee
Fix for situations where atom is opened with a file rather than a directory
[atom-ax-pipe.git] / lib / pipe.coffee
index a85b6348e9b88ac50258d0c9a5f2c7237175111f..5ccd6b0349fa0c321b1a077583a12a12186f2ca8 100644 (file)
@@ -22,7 +22,7 @@ module.exports =
       if history.length > 300
         history.shift()
 
       if history.length > 300
         history.shift()
 
-      commandString = "cd '#{atom.project.path}' && #{commandString}"
+      commandString = "cd '#{atom.project.rootDirectory.path}' && #{commandString}"
       properties = { reversed: true, invalidate: 'never' }
 
       for range in editor.getSelectedBufferRanges()
       properties = { reversed: true, invalidate: 'never' }
 
       for range in editor.getSelectedBufferRanges()