Use `anchor_after` in randomized tests to match `BlockMap`

Antonio Scandurra created

Change summary

crates/editor/src/display_map/block_map.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/editor/src/display_map/block_map.rs 🔗

@@ -1340,7 +1340,7 @@ mod tests {
                     let block_properties = (0..block_count)
                         .map(|_| {
                             let buffer = buffer.read(cx);
-                            let position = buffer.anchor_before(
+                            let position = buffer.anchor_after(
                                 buffer.clip_offset(rng.gen_range(0..=buffer.len()), Bias::Left),
                             );