Autoscroll to cursor after clearing multi-cursor selection.

This commit is contained in:
Collin Donahue-Oponski
2015-12-11 15:32:29 -07:00
parent 4708d5ba88
commit e4e200317a
2 changed files with 28 additions and 6 deletions

View File

@@ -2437,7 +2437,7 @@ class TextEditor extends Model
selections = @getSelections()
if selections.length > 1
selection.destroy() for selection in selections[1...(selections.length)]
selections[0].autoscroll()
selections[0].autoscroll(center: true)
true
else
false