Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Fix git commit font fallbacks (#26184)
0x2CA5c81dd7d398a
diff --git a/crates/panel/src/panel.rs b/crates/panel/src/panel.rsindex 6aa4d85a38b..aecde61e2dd 100644--- a/crates/panel/src/panel.rs+++ b/crates/panel/src/panel.rs@@ -84,9 +84,10 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorSlet font_size = TextSize::Small.rems(cx).to_pixels(window.rem_size());- let (font_family, font_features, font_weight, line_height) = if monospace {+ let (font_family, font_fallbacks, font_features, font_weight, line_height) = if monospace {(settings.buffer_font.family.clone(),+ settings.buffer_font.fallbacks.clone(),settings.buffer_font.features.clone(),settings.buffer_font.weight,font_size * settings.buffer_line_height.value(),@@ -94,6 +95,7 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorS} else {(settings.ui_font.family.clone(),+ settings.ui_font.fallbacks.clone(),settings.ui_font.features.clone(),settings.ui_font.weight,window.line_height(),@@ -106,6 +108,7 @@ pub fn panel_editor_style(monospace: bool, window: &Window, cx: &App) -> EditorStext: TextStyle {color: cx.theme().colors().text,font_family,+ font_fallbacks,font_features,font_size: TextSize::Small.rems(cx).into(),font_weight,