Update editor component when a visible selection is removed

This commit is contained in:
Nathan Sobo
2014-04-01 17:11:10 -06:00
parent a55c329226
commit c4fdb54650
3 changed files with 13 additions and 2 deletions

View File

@@ -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.