Respect symlinks when tagging files (#1997)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-05-30 15:15:30 +10:00
1 parent 7507be4d04
commit fe3a97c5d0
3 files changed
+12 -2

No files matched your search

+8
View File
@@ -31,6 +31,14 @@ func replaceTilde(s string) string {
return s
}
func evalSymlinks(path string) string {
if target, err := filepath.EvalSymlinks(path); err == nil {
return target
}
return path
}
func runeSliceWidth(rs []rune) int {
w := 0
for _, r := range rs {