Handle 'editor:scroll-to-cursor' command

Add Editor::scrollToCursorPosition in the model layer
This commit is contained in:
Nathan Sobo
2014-04-22 16:43:32 -06:00
parent f53d489abb
commit e4639281f8
3 changed files with 18 additions and 1 deletions

View File

@@ -1453,6 +1453,9 @@ class Editor extends Model
moveCursorToNextWordBoundary: ->
@moveCursors (cursor) -> cursor.moveToNextWordBoundary()
scrollToCursorPosition: ->
@getCursor().autoscroll()
moveCursors: (fn) ->
@movingCursors = true
@batchUpdates =>