Add DisplayBuffer::scrollToScreen/BufferPosition

Also add delegators in Editor and ReactEditorView
This commit is contained in:
Nathan Sobo
2014-04-22 16:28:20 -06:00
parent 628c2f82bd
commit f53d489abb
6 changed files with 34 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ class Cursor extends Model
@marker.getHeadBufferPosition()
autoscroll: ->
@editor.autoscrollToScreenRange(@getScreenRange())
@editor.scrollToScreenRange(@getScreenRange())
# Public: If the marker range is empty, the cursor is marked as being visible.
updateVisibility: ->