mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Editor.prototype.removeActiveEditSession calls destroy on the removed edit session
This commit is contained in:
@@ -359,6 +359,7 @@ class Editor extends View
|
||||
editSession = @activeEditSession
|
||||
@loadPreviousEditSession()
|
||||
_.remove(@editSessions, editSession)
|
||||
editSession.destroy()
|
||||
|
||||
loadNextEditSession: ->
|
||||
nextIndex = (@getActiveEditSessionIndex() + 1) % @editSessions.length
|
||||
|
||||
Reference in New Issue
Block a user