1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

fix typo in config name

This commit is contained in:
Wez Furlong 2019-12-21 17:28:35 -08:00
parent 01f50102ab
commit 3e3bfcb4d7
2 changed files with 4 additions and 4 deletions

View File

@ -325,7 +325,7 @@ pub struct Config {
/// use a setting like this:
///
/// ```toml
/// harfuzz_features = ["calt=0", "clig=0", "liga=0"]
/// harfbuzz_features = ["calt=0", "clig=0", "liga=0"]
/// ```
///
/// Some fonts make available extended options via stylistic sets.
@ -338,10 +338,10 @@ pub struct Config {
/// ```toml
/// # Use this for a zero with a dot rather than a line through it
/// # when using the Fira Code font
/// harfuzz_features = ["zero"]
/// harfbuzz_features = ["zero"]
/// ```
#[serde(default = "default_harfbuzz_features")]
pub harfuzz_features: Vec<String>,
pub harfbuzz_features: Vec<String>,
#[serde(default)]
pub front_end: FrontEndSelection,

View File

@ -96,7 +96,7 @@ impl HarfbuzzShaper {
) -> anyhow::Result<Vec<GlyphInfo>> {
let config = configuration();
let features: Vec<harfbuzz::hb_feature_t> = config
.harfuzz_features
.harfbuzz_features
.iter()
.filter_map(|s| harfbuzz::feature_from_string(s).ok())
.collect();