Skip to content

Commit

Permalink
special case for empty features
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkuiZhang committed Apr 23, 2024
1 parent ef029fd commit 5b71fe6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crates/gpui/src/text_system/font_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,17 @@ macro_rules! create_definitions {
};
}
}
Ok(FontFeatures { enabled, disabled, other_enabled: other_enabled.into(), other_disabled: other_disabled.into() })
let other_enabled = if other_enabled.is_empty() {
"".into()
} else {
other_enabled.into()
};
let other_disabled = if other_disabled.is_empty() {
"".into()
} else {
other_disabled.into()
};
Ok(FontFeatures { enabled, disabled, other_enabled, other_disabled })
}
}

Expand Down

0 comments on commit 5b71fe6

Please sign in to comment.