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

+3 -1
View File
@@ -1161,6 +1161,8 @@ func (nav *nav) toggle() {
}
func (nav *nav) tagToggleSelection(path string, tag string) {
path = evalSymlinks(path)
if _, ok := nav.tags[path]; ok {
delete(nav.tags, path)
} else {
@@ -1196,7 +1198,7 @@ func (nav *nav) tag(tag string) error {
}
for _, path := range list {
nav.tags[path] = tag
nav.tags[evalSymlinks(path)] = tag
}
return nil