Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid having carriage returns (\r) in inlays
Kirill Bulatove744fb88423f
diff --git a/crates/editor/src/display_map/inlay_map.rs b/crates/editor/src/display_map/inlay_map.rsindex 615d08fa876..c3ccaf161e0 100644--- a/crates/editor/src/display_map/inlay_map.rs+++ b/crates/editor/src/display_map/inlay_map.rs@@ -472,6 +472,7 @@ impl InlayMap {let bias = if rng.gen() { Bias::Left } else { Bias::Right };let len = rng.gen_range(1..=5);let text = util::RandomCharIter::new(&mut *rng)+ .filter(|ch| *ch != '\r').take(len).collect::<String>();log::info!(