mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Display cursors from all replicas
This commit is contained in:
committed by
Corey Johnson & Matt Colyer
parent
1bf6307480
commit
1bd9a6bef3
@@ -827,6 +827,9 @@ class EditSession
|
||||
hasMultipleCursors: ->
|
||||
@getCursors().length > 1
|
||||
|
||||
getAllCursors: ->
|
||||
@getCursors().concat(@getRemoteCursors())
|
||||
|
||||
# Retrieves all the cursors.
|
||||
#
|
||||
# Returns an {Array} of {Cursor}s.
|
||||
|
||||
@@ -1101,7 +1101,7 @@ class Editor extends View
|
||||
@updateLayerDimensions()
|
||||
@scrollTop(editSessionScrollTop)
|
||||
@scrollLeft(editSessionScrollLeft)
|
||||
@newCursors = @activeEditSession.getCursors()
|
||||
@newCursors = @activeEditSession.getAllCursors()
|
||||
@newSelections = @activeEditSession.getAllSelections()
|
||||
@updateDisplay(suppressAutoScroll: true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user