From: = Date: Thu, 13 Nov 2014 18:26:18 +0000 (-0500) Subject: Fix for situations where atom is opened with a file rather than a directory X-Git-Tag: v0.3.1~1^2~1 X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=88dc3db51d8e36d5410f7f6c7becd90a037cf637;p=atom-ax-pipe.git Fix for situations where atom is opened with a file rather than a directory --- diff --git a/lib/pipe.coffee b/lib/pipe.coffee index a85b634..5ccd6b0 100644 --- a/lib/pipe.coffee +++ b/lib/pipe.coffee @@ -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()