Add line height settings for the editor

This commit is contained in:
Mikayla Maki 2023-07-13 16:13:57 -07:00
parent b7ed467690
commit 77c4fc98bd
No known key found for this signature in database
5 changed files with 46 additions and 4 deletions

View file

@ -198,7 +198,7 @@ impl TerminalLineHeight {
match self {
TerminalLineHeight::Comfortable => 1.618,
TerminalLineHeight::Standard => 1.3,
TerminalLineHeight::Custom(line_height) => *line_height,
TerminalLineHeight::Custom(line_height) => f32::max(*line_height, 1.),
}
}
}