Allow edits at the end of MultiBuffer

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-12-15 16:45:01 +01:00
co-authored by Nathan Sobo
parent 7bbaa1d930
commit bcdb4ffd88
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1254,7 +1254,7 @@ mod tests {
let buffer = if rng.gen() {
MultiBuffer::build_simple(&text, cx)
} else {
MultiBuffer::build_random(1, &mut rng, cx)
MultiBuffer::build_random(rng.gen_range(1..=5), &mut rng, cx)
};
let mut buffer_snapshot = buffer.read(cx).snapshot(cx);
let mut map = FoldMap::new(buffer_snapshot.clone()).0;