From 88dc3db51d8e36d5410f7f6c7becd90a037cf637 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 13 Nov 2014 13:26:18 -0500 Subject: [PATCH] Fix for situations where atom is opened with a file rather than a directory --- lib/pipe.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2