Skip to content

Commit

Permalink
Settings tab doesn't replace temporary tab
Browse files Browse the repository at this point in the history
  • Loading branch information
monsterkodi committed Mar 21, 2015
1 parent cfea156 commit c83fb05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/sublime-tab-bar-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ class SublimeTabBarView extends TabBarView
false

addTabForItem: (item, index) ->
for tab in @getTabs()
@closeTab(tab) if tab.is('.temp')
if item.activePanelName != "Settings"
for tab in @getTabs()
@closeTab(tab) if tab.is('.temp')

tabView = new SublimeTabView(item, @pane, @openPermanent, @considerTemp)
@insertTabAtIndex(tabView, index)
Expand Down

0 comments on commit c83fb05

Please sign in to comment.