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.

gpui: Fix markdown wrapped background not correctly rendering (#29571)

Smit Barmase5102c4c002c0
diff --git a/crates/gpui/src/text_system/line.rs b/crates/gpui/src/text_system/line.rs
index ee351c342a0..3813393d81d 100644
--- a/crates/gpui/src/text_system/line.rs
+++ b/crates/gpui/src/text_system/line.rs
@@ -482,6 +482,16 @@ fn paint_line_background(
background_origin.x = origin.x;
background_origin.y += line_height;
}
+
+ glyph_origin.x = aligned_origin_x(
+ origin,
+ align_width.unwrap_or(layout.width),
+ glyph.position.x,
+ &align,
+ layout,
+ wraps.peek(),
+ );
+ glyph_origin.y += line_height;
}
prev_glyph_position = glyph.position;