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.

Clarify Lamport ordering comment in remote edit (#52037)

David Anekstein281cfdd7a207
diff --git a/crates/text/src/text.rs b/crates/text/src/text.rs
index 4b947234054..fa07a7922e9 100644
--- a/crates/text/src/text.rs
+++ b/crates/text/src/text.rs
@@ -1176,7 +1176,7 @@ impl Buffer {
fragment_start = old_fragments.start().0.full_offset();
}
- // Skip over insertions that are concurrent to this edit, but have a lower lamport
+ // Skip over insertions that are concurrent to this edit, but have a higher lamport
// timestamp.
while let Some(fragment) = old_fragments.item() {
if fragment_start == range.start && fragment.timestamp > timestamp {