mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Don't need to assign retainSelection on the SelectionView anymore
This commit is contained in:
@@ -333,11 +333,9 @@ class Selection
|
||||
|
||||
modifySelection: (fn) ->
|
||||
@retainSelection = true
|
||||
@view?.retainSelection = true
|
||||
@placeAnchor() unless @anchor
|
||||
fn()
|
||||
@retainSelection = false
|
||||
@view?.retainSelection = false
|
||||
|
||||
placeAnchor: ->
|
||||
@anchor = @editSession.addAnchor(strong: true)
|
||||
|
||||
Reference in New Issue
Block a user