   start: ->
     activatePaneItemInAdjacentPane(@editor, split: settings.get('directionToOpen'))
     @grammar.activate()
-    @setPromptLine((@input ? '') + "\n")
+    @setPrompt(@input)
     @moveToPrompt()
     @refresh()
 

  destroyed: false
  items: []
  itemsByProvider: null # Used to cache result

  onDidMoveToPrompt: (fn) -> @emitter.on('did-move-to-prompt', fn)
  emitDidMoveToPrompt: -> @emitter.emit('did-move-to-prompt')

    @editor.bufferRangeForBufferRow(0)

  # Return range
  setPrompt: (text='') ->
    if @editor.getLastBufferRow() is 0
      text += "\n"
    @ignoreChangeOnEditor = true
    range = @editor.setTextInBufferRange(@getPromptRange(0), text)
    @ignoreChangeOnEditor = false
