mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Remove last of the extraneous CursorView methods
This commit is contained in:
@@ -9,7 +9,6 @@ class CursorView extends View
|
||||
@content: ->
|
||||
@pre class: 'cursor idle', => @raw ' '
|
||||
|
||||
anchor: null
|
||||
editor: null
|
||||
hidden: false
|
||||
|
||||
@@ -47,23 +46,12 @@ class CursorView extends View
|
||||
@show() if @hidden
|
||||
@hidden = false
|
||||
|
||||
@getSelectionView()?.updateAppearance()
|
||||
|
||||
getSelectionView: ->
|
||||
@editor.compositeSelection.selectionViewForCursor(@cursor)
|
||||
|
||||
getBufferPosition: ->
|
||||
@cursor.getBufferPosition()
|
||||
|
||||
setBufferPosition: (bufferPosition, options={}) ->
|
||||
@cursor.setBufferPosition(bufferPosition, options)
|
||||
|
||||
getScreenPosition: ->
|
||||
@cursor.getScreenPosition()
|
||||
|
||||
setScreenPosition: (position, options={}) ->
|
||||
@cursor.setScreenPosition(position, options)
|
||||
|
||||
removeIdleClassTemporarily: ->
|
||||
@removeClass 'idle'
|
||||
window.clearTimeout(@idleTimeout) if @idleTimeout
|
||||
|
||||
@@ -155,6 +155,9 @@ class EditSession
|
||||
|
||||
getCursors: -> new Array(@cursors...)
|
||||
|
||||
getCursor: (index=0) ->
|
||||
@cursors[index]
|
||||
|
||||
getLastCursor: ->
|
||||
_.last(@cursors)
|
||||
|
||||
|
||||
@@ -653,6 +653,7 @@ class Editor extends View
|
||||
getCursorView: (index) -> @compositeCursor.getCursorView(index)
|
||||
getCursorViews: -> @compositeCursor.getCursorViews()
|
||||
removeAllCursorViews: -> @compositeCursor.removeAllCursorViews()
|
||||
getCursor: (index) -> @activeEditSession.getCursor(index)
|
||||
getCursors: -> @activeEditSession.getCursors()
|
||||
getLastCursor: -> @activeEditSession.getLastCursor()
|
||||
moveCursorUp: -> @activeEditSession.moveCursorUp()
|
||||
|
||||
Reference in New Issue
Block a user