1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-28 07:55:03 +03:00

color scheme: allow exporting schemes that set index colors

refs: https://github.com/catppuccin/wezterm/issues/6
This commit is contained in:
Wez Furlong 2022-07-15 15:42:26 -07:00
parent 60b5be2b34
commit 3d616ffb3d

View File

@ -468,6 +468,9 @@ fn dynamic_to_toml(value: Value) -> anyhow::Result<toml::Value> {
for (k, v) in o {
let k = match k {
Value::String(s) => s,
Value::U64(u) => u.to_string(),
Value::I64(u) => u.to_string(),
Value::F64(u) => u.to_string(),
_ => anyhow::bail!("toml keys must be strings {k:?}"),
};
let v = match v {