Skip to content

Commit

Permalink
Merge pull request #77 from monsterkodi/master
Browse files Browse the repository at this point in the history
Settings tab doesn't replace temporary tab
  • Loading branch information
ddavison committed Mar 23, 2015
2 parents 40ef276 + c83fb05 commit c5df898
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 c5df898

Please sign in to comment.