From ae6f138b6c7cd8a67efca6e45a11e2bf9966593a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E7=99=BD?= <364772080@qq.com> Date: Fri, 22 Mar 2024 16:10:42 +0800 Subject: [PATCH] Fix `compute_width_for_char` (#9643) Release Notes: - N/A --- crates/gpui/src/text_system/line_wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/text_system/line_wrapper.rs b/crates/gpui/src/text_system/line_wrapper.rs index 56f18ea48e..a4f407e1fa 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, }], )