mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Move cursors within a transaction to batch marker layer update events
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
@@ -2341,8 +2341,9 @@ class TextEditor extends Model
|
||||
cursor
|
||||
|
||||
moveCursors: (fn) ->
|
||||
fn(cursor) for cursor in @getCursors()
|
||||
@mergeCursors()
|
||||
@transact =>
|
||||
fn(cursor) for cursor in @getCursors()
|
||||
@mergeCursors()
|
||||
|
||||
cursorMoved: (event) ->
|
||||
@emitter.emit 'did-change-cursor-position', event
|
||||
|
||||
Reference in New Issue
Block a user