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=5ccd6b0349fa0c321b1a077583a12a12186f2ca8;hb=e5059036dbdc3c16b0208045133a6491e5f3d2e2;hpb=88dc3db51d8e36d5410f7f6c7becd90a037cf637 diff --git a/lib/pipe.coffee b/lib/pipe.coffee index 5ccd6b0..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.rootDirectory.path}' && #{commandString}" + if atom.project.rootDirectory? + commandString = "cd '#{atom.project.rootDirectory.path}' && #{commandString}" properties = { reversed: true, invalidate: 'never' } for range in editor.getSelectedBufferRanges()