mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only pass event to the editor
This commit is contained in:
@@ -46,7 +46,7 @@ class Cursor extends Model
|
||||
|
||||
@emit 'moved', movedEvent
|
||||
@emitter.emit 'did-change-position'
|
||||
@editor.cursorMoved(this, movedEvent)
|
||||
@editor.cursorMoved(movedEvent)
|
||||
@marker.onDidDestroy =>
|
||||
@destroyed = true
|
||||
@editor.removeCursor(this)
|
||||
|
||||
@@ -1604,7 +1604,7 @@ class Editor extends Model
|
||||
fn(cursor) for cursor in @getCursors()
|
||||
@mergeCursors()
|
||||
|
||||
cursorMoved: (cursor, event) ->
|
||||
cursorMoved: (event) ->
|
||||
@emit 'cursor-moved', event
|
||||
@emitter.emit 'did-change-cursor-position', event
|
||||
|
||||
|
||||
Reference in New Issue
Block a user