diff options
| author | sodiboo <37938646+sodiboo@users.noreply.github.com> | 2024-03-01 12:50:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-01 03:50:49 -0800 |
| commit | 24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d (patch) | |
| tree | c0e4b23e4dee60e591a609bc717874c18edb312b /src/layout | |
| parent | 88ac16c99a4a86f61a38ac4584bf13a9358f6236 (diff) | |
| download | niri-24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d.tar.gz niri-24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d.tar.bz2 niri-24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d.zip | |
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
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
