mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Accivate the first added pane item
This commit is contained in:
@@ -132,6 +132,7 @@ class Pane extends Model
|
||||
return if item in @items
|
||||
|
||||
@items.splice(index, 0, item)
|
||||
@activeItem ?= item
|
||||
@emit 'item-added', item, index
|
||||
item
|
||||
|
||||
|
||||
Reference in New Issue
Block a user