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

          for selection in @editor.getSelections() when onPrompt(selection.getBufferRange())
            selection.destroy()
          # Recover query on prompt
          @setPromptLine(@lastNarrowQuery) if @lastNarrowQuery
        else
          @refresh()


    # In case prompt accidentaly mutated
    eof = @editor.getEofBufferPosition()
    if eof.isLessThan(@itemAreaStart)
      eof = @setPrompt().end
      @moveToPrompt()

    filterSpec = getFilterSpecForQuery(@getNarrowQuery())
