mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Handle 'editor:scroll-to-cursor' command
Add Editor::scrollToCursorPosition in the model layer
This commit is contained in:
@@ -1453,6 +1453,9 @@ class Editor extends Model
|
||||
moveCursorToNextWordBoundary: ->
|
||||
@moveCursors (cursor) -> cursor.moveToNextWordBoundary()
|
||||
|
||||
scrollToCursorPosition: ->
|
||||
@getCursor().autoscroll()
|
||||
|
||||
moveCursors: (fn) ->
|
||||
@movingCursors = true
|
||||
@batchUpdates =>
|
||||
|
||||
Reference in New Issue
Block a user