Clearing a selection will also finalize the selection

Fixes #1843
This commit is contained in:
Corey Johnson
2014-04-11 09:43:26 -07:00
parent bb98b3ef38
commit 3644a36d67
2 changed files with 15 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ class Selection
clear: ->
@marker.setAttributes(goalBufferRange: null)
@marker.clearTail() unless @retainSelection
@finalize()
# Public: Modifies the selection to encompass the current word.
#