From 0e6048a85d0ed547774f34cdfd15b565d82407df Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 20 Jul 2023 13:42:11 +0300 Subject: [PATCH] Keep basic line height for single line editors --- crates/editor/src/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 47f31f2c94..f06425fc0b 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -8170,8 +8170,8 @@ fn build_style( .unwrap_or_default(); line_height_scalar = match mode { - EditorMode::Full => line_height_scalar, - EditorMode::AutoHeight { .. } | EditorMode::SingleLine => cx + EditorMode::SingleLine | EditorMode::Full => line_height_scalar, + EditorMode::AutoHeight { .. } => cx .font_cache() .line_height(field_editor_theme.text.font_size), };