mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Update editor component when a visible selection is removed
This commit is contained in:
@@ -1202,6 +1202,7 @@ class Editor extends Model
|
||||
# Remove the given selection.
|
||||
removeSelection: (selection) ->
|
||||
_.remove(@selections, selection)
|
||||
@emit 'selection-removed', selection
|
||||
|
||||
# Reduce one or more selections to a single empty selection based on the most
|
||||
# recently added cursor.
|
||||
|
||||
Reference in New Issue
Block a user