From 5ac137c877a567cf357a62c040f31e46bf6d216b Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Sat, 22 Oct 2022 11:03:00 +0800 Subject: [PATCH] fix: find yspan.origin right error --- crates/loro-core/src/container/text/tracker/content_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/loro-core/src/container/text/tracker/content_map.rs b/crates/loro-core/src/container/text/tracker/content_map.rs index 309569c0..a2b53976 100644 --- a/crates/loro-core/src/container/text/tracker/content_map.rs +++ b/crates/loro-core/src/container/text/tracker/content_map.rs @@ -92,7 +92,7 @@ impl ContentMap { let mut next_cursor = cursor.next_elem_start(); let mut ans = None; while let Some(next_inner) = next_cursor { - if next_inner.as_ref().status.future { + if !next_inner.as_ref().status.future { let mut cursor = next_inner.unwrap(); cursor.offset = 0; cursor.pos = Position::Start;