 
   forceRefresh: ->
     @provider.invalidateCachedItem()
-    @narrowEditor.setCursorBufferPosition([0, Infinity])
+    @moveToPrompt()
     @refresh()
 
   refreshing: false

      return false

    if @provider.showLineHeader
      for line, row in @narrowEditor.buffer.getLines() when (row >= 1)
        return false unless line.startsWith(@items[row]._lineHeader)

    true


  observeInputChange: ->
    @narrowEditor.buffer.onDidChange ({newRange, oldRange}) =>
      if not newRange.isEmpty() and (newRange.start.row is 0) and (newRange.end.row is 0)
        return @refresh()

      if not oldRange.isEmpty() and (oldRange.start.row is 0) and (oldRange.end.row is 0)
        return @refresh()

  locked: false
  isLocked: -> @locked

    @registerCommands()
    @disposables.add(@observeInputChange())
    @observeCursorPositionChangeForNarrowEditor()

    @disposables.add atom.workspace.onDidStopChangingActivePaneItem (item) =>
      @rowMarker?.destroy() if item isnt @narrowEditor
