       # Otherwise, when original pane have item for same path(URI), it opens on CURRENT pane.
       originalActivePane = atom.workspace.getActivePane() unless activatePane
       pane.activate()
-
-    atom.workspace.open(filePath, openOptions).then (editor) ->
-      originalActivePane?.activate()
-      return editor
+      atom.workspace.open(filePath, openOptions).then (editor) ->
+        originalActivePane?.activate()
+        return editor
 
   confirmed: (item) ->
     @needRestoreEditorState = false
-    {point} = item
     @openFileForItem(item, activatePane: true).then (editor) ->
+      {point} = item
       editor.setCursorBufferPosition(point, autoscroll: false)
       editor.scrollToBufferPosition(point, center: true)
       return editor

  reopened: false

  @reopen: ->
    if state = @destroyedProviderStates.shift()
      {name, options, state} = state
      @start(name, options, state)

  @start: (name, options, state) ->

    if item.header?
      item.header
    else
      (item._lineHeader ? '') + item.text

  # Direct Edit
  # -------------------------
