mirror of
https://github.com/atom/atom.git
synced 2026-02-04 19:54:59 -05:00
Add the 'editor:edit-session-removed' event to Editor
This commit is contained in:
@@ -399,9 +399,11 @@ class Editor extends View
|
||||
@remove()
|
||||
else
|
||||
editSession = @activeEditSession
|
||||
index = @getActiveEditSessionIndex()
|
||||
@loadPreviousEditSession()
|
||||
_.remove(@editSessions, editSession)
|
||||
editSession.destroy()
|
||||
@trigger 'editor:edit-session-removed', [editSession, index]
|
||||
|
||||
loadNextEditSession: ->
|
||||
nextIndex = (@getActiveEditSessionIndex() + 1) % @editSessions.length
|
||||
|
||||
Reference in New Issue
Block a user