Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Touch up render function
Piotr Osiewicze32aa95092b8
diff --git a/crates/rich_text/src/rich_text.rs b/crates/rich_text/src/rich_text.rsindex 0b13050777e..0e5df3b816c 100644--- a/crates/rich_text/src/rich_text.rs+++ b/crates/rich_text/src/rich_text.rs@@ -81,17 +81,15 @@ impl RichText {}),);}- if region.background_kind == Some(BackgroundKind::Code) {- cx.scene().push_quad(gpui::Quad {- bounds,- background: Some(code_span_background_color),- border: Default::default(),- corner_radii: (2.0).into(),- });- } else if region.background_kind == Some(BackgroundKind::Mention) {+ if let Some(region_kind) = ®ion.background_kind {+ let background = match region_kind {+ BackgroundKind::Code => code_span_background_color,+ BackgroundKind::Mention => self_mention_span_background_color,+ }+ .into();cx.scene().push_quad(gpui::Quad {bounds,- background: Some(self_mention_span_background_color),+ background,border: Default::default(),corner_radii: (2.0).into(),});