Correctly handle parsing of Binds and DefaultColumnWidth (#234)

* add dev dependencies to flake

* parse only one default-column-width

* require exactly one action per bind, and unique keys for binds

* use proper filename for config errors if possible

* fix duplicate keybinds after invalid action, lose some sanity
This commit is contained in:
sodiboo
2024-03-01 12:50:49 +01:00
committed by GitHub
parent 88ac16c99a
commit 24537ec2ba
6 changed files with 232 additions and 59 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ pub fn resolve_window_rules(
if let Some(x) = rule
.default_column_width
.as_ref()
.map(|d| d.0.first().copied().map(ColumnWidth::from))
.map(|d| d.0.map(ColumnWidth::from))
{
resolved.default_width = Some(x);
}