Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Fix `shape_text` split to support \r\n (#31022)
Jason Leeb7d5e6480abf
diff --git a/crates/gpui/src/text_system.rs b/crates/gpui/src/text_system.rsindex 3aa78491eb3..b521c6c5a99 100644--- a/crates/gpui/src/text_system.rs+++ b/crates/gpui/src/text_system.rs@@ -474,7 +474,7 @@ impl WindowTextSystem {font_runs.clear();};- let mut split_lines = text.split('\n');+ let mut split_lines = text.lines();let mut processed = false;if let Some(first_line) = split_lines.next() {