From 24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d Mon Sep 17 00:00:00 2001 From: sodiboo <37938646+sodiboo@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:50:49 +0100 Subject: 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 --- src/layout/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 490f5327..fb86ccac 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -200,7 +200,7 @@ impl Options { let default_width = layout .default_column_width .as_ref() - .map(|w| w.0.first().copied().map(ColumnWidth::from)) + .map(|w| w.0.map(ColumnWidth::from)) .unwrap_or(Some(ColumnWidth::Proportion(0.5))); Self { -- cgit