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()