From c000eda54b5b686b778ab9977fdeb1d324ba733c Mon Sep 17 00:00:00 2001 From: ellieplayswow <164806095+ellieplayswow@users.noreply.github.com> Date: Wed, 5 Feb 2025 20:53:36 +0000 Subject: [PATCH] Fixing issue where a tab tries to read lines from a .hidden directory --- src/tab.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tab.rs b/src/tab.rs index b248ce5..2386875 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -545,7 +545,7 @@ pub fn scan_path(tab_path: &PathBuf, sizes: IconSizes) -> Vec { } }; - if name == ".hidden" { + if name == ".hidden" && path.is_file() { hidden_files = parse_hidden_file(&path); }