mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
determine if dragged tab was perviously active before reactivating in new pane
This commit is contained in:
@@ -82,9 +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')
|
||||
fromEditor.setActiveEditSessionIndex(0)
|
||||
|
||||
@setActiveTab(currentDraggedTabIndex)
|
||||
toEditor.setActiveEditSessionIndex(currentDraggedTabIndex)
|
||||
toEditor.focus()
|
||||
|
||||
if fromPaneIndex != toPaneIndex && !draggedTab.hasClass('active')
|
||||
fromEditor.setActiveEditSessionIndex(0)
|
||||
|
||||
Reference in New Issue
Block a user