mirror of
https://github.com/atom/atom.git
synced 2026-02-04 19:54:59 -05:00
Always provide the EditSession and its index on EditSession events
This commit is contained in:
@@ -388,7 +388,7 @@ class Editor extends View
|
||||
if index == -1
|
||||
index = @editSessions.length
|
||||
@editSessions.push(editSession)
|
||||
@trigger 'editor:edit-session-added', editSession
|
||||
@trigger 'editor:edit-session-added', [editSession, index]
|
||||
|
||||
@setActiveEditSessionIndex(index)
|
||||
|
||||
@@ -431,7 +431,7 @@ class Editor extends View
|
||||
@trigger 'editor-path-change'
|
||||
|
||||
@trigger 'editor-path-change'
|
||||
@trigger 'editor:active-edit-session-changed', index
|
||||
@trigger 'editor:active-edit-session-changed', [@activeEditSession, index]
|
||||
@resetDisplay()
|
||||
|
||||
if @attached and @activeEditSession.buffer.isInConflict()
|
||||
|
||||
Reference in New Issue
Block a user