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.

Fix strikethrough and underline in Linux (#27267)

João Marcos7ced1b7a90dc
diff --git a/crates/gpui/src/text_system/line.rs b/crates/gpui/src/text_system/line.rs
index 859485aabee..ca2a9e9a728 100644
--- a/crates/gpui/src/text_system/line.rs
+++ b/crates/gpui/src/text_system/line.rs
@@ -202,7 +202,7 @@ fn paint_line(
for (glyph_ix, glyph) in run.glyphs.iter().enumerate() {
glyph_origin.x += glyph.position.x - prev_glyph_position.x;
- if glyph_ix == 0 {
+ if glyph_ix == 0 && run_ix == 0 {
first_glyph_x = glyph_origin.x;
}