Respect symlinks when tagging files (#1997)
This commit is contained in:
1 parent
7507be4d04
commit
fe3a97c5d0
3 files changed
+12
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user