X-Git-Url: https://arthur.barton.de/gitweb/?p=atom-ax-pipe.git;a=blobdiff_plain;f=lib%2Fpipe.coffee;fp=lib%2Fpipe.coffee;h=5294840bd507d0833bc6a85f296f20a40320056f;hp=a85b6348e9b88ac50258d0c9a5f2c7237175111f;hb=ecc3a31260ef2d2528e3a7f8446e18f5e154663f;hpb=ee2a2bd38fb54c766b00db4db0d704d4b4553aca diff --git a/lib/pipe.coffee b/lib/pipe.coffee index a85b634..5294840 100644 --- a/lib/pipe.coffee +++ b/lib/pipe.coffee @@ -22,7 +22,8 @@ module.exports = if history.length > 300 history.shift() - commandString = "cd '#{atom.project.path}' && #{commandString}" + if atom.project.rootDirectory? + commandString = "cd '#{atom.project.rootDirectory.path}' && #{commandString}" properties = { reversed: true, invalidate: 'never' } for range in editor.getSelectedBufferRanges()