diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index cfca895eff..a2fc4d67cf 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -10323,7 +10323,19 @@ impl Render for Editor { let settings = ThemeSettings::get_global(cx); let text_style = match self.mode { - EditorMode::SingleLine | EditorMode::AutoHeight { .. } => cx.text_style(), + EditorMode::SingleLine | EditorMode::AutoHeight { .. } => TextStyle { + color: cx.theme().colors().editor_foreground, + font_family: settings.ui_font.family.clone(), + font_features: settings.ui_font.features, + font_size: rems(0.875).into(), + font_weight: FontWeight::NORMAL, + font_style: FontStyle::Normal, + line_height: relative(settings.buffer_line_height.value()), + background_color: None, + underline: None, + strikethrough: None, + white_space: WhiteSpace::Normal, + }, EditorMode::Full => TextStyle { color: cx.theme().colors().editor_foreground, font_family: settings.buffer_font.family.clone(),