       # 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

    if item.header?
      item.header
    else
      if item._lineHeader?
        item._lineHeader + item.text
      else
        item.text

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

    if itemToOpen?
      pane.activate() if activatePane
      pane.activateItem(itemToOpen)
      return Promise.resolve(itemToOpen)

    openOptions = {pending: true, activatePane: activatePane, activateItem: true}
    if WorkspaceOpenAcceptPaneOption
      openOptions.pane = pane
      atom.workspace.open(filePath, openOptions)

    else
      # NOTE: See #107
      # In Atom v1.16.0 or older, `workspace.open` doesn't allow to specify target pane to open file.
