]> arthur.barton.de Git - atom-ax-pipe.git/commitdiff
Fix for situations where atom is opened with a file rather than a directory
author= <brandonhorst@gmail.com>
Thu, 13 Nov 2014 18:26:18 +0000 (13:26 -0500)
committer= <brandonhorst@gmail.com>
Thu, 13 Nov 2014 18:26:18 +0000 (13:26 -0500)
lib/pipe.coffee

index a85b6348e9b88ac50258d0c9a5f2c7237175111f..5ccd6b0349fa0c321b1a077583a12a12186f2ca8 100644 (file)
@@ -22,7 +22,7 @@ module.exports =
       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()