     @ul tabindex: -1, class: "list-inline tab-bar inset-panel"
 
   initialize: (@pane) ->
-    @command 'tabs:close-tab', => @closeTab(true)
+    @command 'tabs:close-tab', => @closeTab()
     @command 'tabs:close-other-tabs', => @closeOtherTabs()
     @command 'tabs:close-tabs-to-right', => @closeTabsToRight()
 

    @setActiveTab(@tabForItem(@pane.activeItem))

  closeTab: (tab) ->
    if tab is true then tab = @children('.right-clicked').view()
    @pane.destroyItem(tab.item)

  closeOtherTabs: ->

        @pane.trigger('application:new-file')
        false

    @on 'click', '.tab .close-icon', ({target}) =>
      tab = $(target).closest('.tab').view()
      @pane.destroyItem(tab.item)
      false

