mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
More CompositeCursor 💄. Preparing to axe it
This commit is contained in:
@@ -19,15 +19,11 @@ class CompositeCursor
|
||||
@editor.renderedLines.append(cursor)
|
||||
cursor
|
||||
|
||||
viewForCursor: (cursor) ->
|
||||
for view in @getCursors()
|
||||
return view if view.cursor == cursor
|
||||
removeCursorView: (cursorView) ->
|
||||
_.remove(@cursors, cursorView)
|
||||
|
||||
removeAllCursorViews: ->
|
||||
cursor.remove() for cursor in @getCursorViews()
|
||||
|
||||
removeCursor: (cursor) ->
|
||||
_.remove(@cursors, cursor)
|
||||
|
||||
updateAppearance: ->
|
||||
cursor.updateAppearance() for cursor in @cursors
|
||||
|
||||
@@ -28,7 +28,7 @@ class CursorView extends View
|
||||
@editor.syncCursorAnimations()
|
||||
|
||||
remove: ->
|
||||
@editor.compositeCursor.removeCursor(this)
|
||||
@editor.compositeCursor.removeCursorView(this)
|
||||
@cursor.off()
|
||||
super
|
||||
|
||||
|
||||
Reference in New Issue
Block a user