     if item.header?
       item.header
     else
-      if item._lineHeader?
-        item._lineHeader + item.text
-      else
-        item.text
+      (item._lineHeader ? '') + item.text
 
   # Direct Edit
   # -------------------------

  reopened: false

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

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

      # 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

  confirmed: (item) ->
    @needRestoreEditorState = false
    @openFileForItem(item, activatePane: true).then (editor) ->
      {point} = item
      editor.setCursorBufferPosition(point, autoscroll: false)
      editor.scrollToBufferPosition(point, center: true)
      return editor
