mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
Keep basic line height for single line editors
This commit is contained in:
parent
257dd57fe4
commit
0e6048a85d
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue