From be1b9271ad864e5ff98376f501b6d5cac536cd8d Mon Sep 17 00:00:00 2001 From: Kyohei Uto Date: Sat, 2 Mar 2024 15:05:49 +0900 Subject: [PATCH] Show items linked to directory in the directory section --- src/state.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 6b0ec76..91bfd70 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1205,7 +1205,14 @@ impl State { } match entry.file_type { FileType::Directory => dir_v.push(entry), - FileType::File | FileType::Symlink => file_v.push(entry), + FileType::File => file_v.push(entry), + FileType::Symlink => { + if entry.symlink_dir_path.is_some() { + dir_v.push(entry); + } else { + file_v.push(entry); + } + } } }