This reverts commit fe3a97c5d0.
This commit is contained in:
1 parent
c7b59d27ce
commit
041dfcc073
3 files changed
+2
-12
No files matched your search
@@ -32,14 +32,6 @@ func replaceTilde(s string) string {
|
|||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
func evalSymlinks(path string) string {
|
|
||||||
if target, err := filepath.EvalSymlinks(path); err == nil {
|
|
||||||
return target
|
|
||||||
}
|
|
||||||
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
|
|
||||||
func runeSliceWidth(rs []rune) int {
|
func runeSliceWidth(rs []rune) int {
|
||||||
w := 0
|
w := 0
|
||||||
for _, r := range rs {
|
for _, r := range rs {
|
||||||
|
|||||||
@@ -1257,8 +1257,6 @@ func (nav *nav) toggle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (nav *nav) tagToggleSelection(path string, tag string) {
|
func (nav *nav) tagToggleSelection(path string, tag string) {
|
||||||
path = evalSymlinks(path)
|
|
||||||
|
|
||||||
if _, ok := nav.tags[path]; ok {
|
if _, ok := nav.tags[path]; ok {
|
||||||
delete(nav.tags, path)
|
delete(nav.tags, path)
|
||||||
} else {
|
} else {
|
||||||
@@ -1294,7 +1292,7 @@ func (nav *nav) tag(tag string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, path := range list {
|
for _, path := range list {
|
||||||
nav.tags[evalSymlinks(path)] = tag
|
nav.tags[path] = tag
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user