mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Make 'core:close' destroy the pane itself if it is empty
This commit is contained in:
@@ -132,6 +132,10 @@ class Workspace extends Model
|
||||
destroyActivePaneItem: ->
|
||||
@activePane?.destroyActiveItem()
|
||||
|
||||
# Public: destroy/close the active pane.
|
||||
destroyActivePane: ->
|
||||
@activePane?.destroy()
|
||||
|
||||
# Private: Removes the item's uri from the list of potential items to reopen.
|
||||
itemOpened: (item) ->
|
||||
if uri = item.getUri?()
|
||||
|
||||
Reference in New Issue
Block a user