Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert "gpui: Fix `shape_text` split to support \r\n" (#31031)

Jason Lee65e751ca339b
diff --git a/crates/gpui/src/text_system.rs b/crates/gpui/src/text_system.rs
index b521c6c5a99..3aa78491eb3 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.lines();
+ let mut split_lines = text.split('\n');
let mut processed = false;
if let Some(first_line) = split_lines.next() {