Remove unused autoscrollOnAttach flag from CursorView

We no longer call `updateDisplay` immediately when the cursor is attached. Instead, we always attach and remove cursor views from `Editor#updateDisplay`, so we will decide whether to autoscroll at that level.
This commit is contained in:
Nathan Sobo
2012-11-13 15:08:44 -07:00
parent f96cf439c0
commit ee233d56a7

View File

@@ -11,10 +11,8 @@ class CursorView extends View
editor: null
visible: true
autoscrollOnAttach: null
initialize: (@cursor, @editor, options={}) ->
@autoscrollOnAttach = options.autoscroll ? true
@cursor.on 'change-screen-position.cursor-view', (screenPosition, { bufferChange, autoscroll }) =>
@updateDisplay({autoscroll})
@removeIdleClassTemporarily() unless bufferChange