mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
remove pane if it has no tabs left
This commit is contained in:
@@ -82,7 +82,9 @@ class TabView extends SortableList
|
||||
currentDraggedTabIndex = draggedTab.index()
|
||||
toEditor.editSessions.splice(currentDraggedTabIndex, 0, fromEditor.editSessions.splice(previousDraggedTabIndex, 1)[0])
|
||||
|
||||
if fromPaneIndex != toPaneIndex && draggedTab.hasClass('active')
|
||||
if fromPane.find('.tab').length == 0
|
||||
fromPane.view().remove()
|
||||
else if fromPaneIndex != toPaneIndex && draggedTab.hasClass('active')
|
||||
fromEditor.setActiveEditSessionIndex(0)
|
||||
|
||||
@setActiveTab(currentDraggedTabIndex)
|
||||
|
||||
Reference in New Issue
Block a user