Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix cursor colors of non-followed collaborators

Max Brunsfelde0bdd857f15a
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 62f4c8c8065..90fe6ccc523 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -2251,7 +2251,7 @@ impl Element<Editor> for EditorElement {
let replica_id = if let Some(mapping) = &editor.replica_id_mapping {
mapping.get(&replica_id).copied()
} else {
- None
+ Some(replica_id)
};
// The local selections match the leader's selections.