From f7c019743a6087de0961d5b2741e72ab214b65be Mon Sep 17 00:00:00 2001 From: Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> Date: Tue, 24 May 2022 13:09:01 +0900 Subject: [PATCH] fix: add checking for missing extensions (#1432) --- zellij-utils/src/input/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)