Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix `compute_width_for_char` (#9643)
张小白ae6f138b6c7c
diff --git a/crates/gpui/src/text_system/line_wrapper.rs b/crates/gpui/src/text_system/line_wrapper.rsindex 56f18ea48e2..a4f407e1fa6 100644--- a/crates/gpui/src/text_system/line_wrapper.rs+++ b/crates/gpui/src/text_system/line_wrapper.rs@@ -117,7 +117,7 @@ impl LineWrapper {buffer,self.font_size,&[FontRun {- len: 1,+ len: buffer.len(),font_id: self.font_id,}],)