Skip to content

Commit 08fd77b

Browse files
authored
Merge pull request #34 from ibrahim317/fix/symlink-detection
fix(filetype): preserve non-file types from scanner
2 parents 3743b24 + d1a10b1 commit 08fd77b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/dired/filetype.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ function M.get_filetype(filename, filetype)
357357
return "text"
358358
end
359359
else
360-
return "directory"
360+
-- Preserve non-file types reported by the scanner (e.g., "directory", "link", ...)
361+
return filetype
361362
end
362363
end
363364

0 commit comments

Comments
 (0)