diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs index 4e91bcdc..59fdbbe4 100644 --- a/zellij-utils/src/input/layout.rs +++ b/zellij-utils/src/input/layout.rs @@ -262,7 +262,7 @@ impl LayoutFromYamlIntermediate { match layout_dir { Some(dir) => { let layout_path = &dir.join(layout); - if layout_path.exists() { + if layout_path.with_extension("yaml").exists() { Self::from_path(layout_path) } else { LayoutFromYamlIntermediate::from_default_assets(layout)