Display cursors from all replicas

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-07-23 16:44:51 -07:00
committed by Corey Johnson & Matt Colyer
parent 1bf6307480
commit 1bd9a6bef3
3 changed files with 8 additions and 2 deletions

View File

@@ -827,6 +827,9 @@ class EditSession
hasMultipleCursors: ->
@getCursors().length > 1
getAllCursors: ->
@getCursors().concat(@getRemoteCursors())
# Retrieves all the cursors.
#
# Returns an {Array} of {Cursor}s.

View File

@@ -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)