summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-18 21:57:53 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-18 22:03:59 +0900
commit6fa8295ac5cd271f25f431611c25944bed416120 (patch)
tree1f024b094cca2050a73aabfa4ae3107748677521 /src
parentf975b402365d92c816a060aba580811bc5c55cc5 (diff)
downloadfzf-6fa8295ac5cd271f25f431611c25944bed416120.tar.gz
walker: Append path separator to directories
Close #4255
Diffstat (limited to 'src')
-rw-r--r--src/reader.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reader.go b/src/reader.go
index d78f10ff..679cb636 100644
--- a/src/reader.go
+++ b/src/reader.go
@@ -320,6 +320,7 @@ func (r *Reader) readFiles(roots []string, opts walkerOpts, ignores []string) bo
return filepath.SkipDir
}
}
+ path += sep
}
if ((opts.file && !isDir) || (opts.dir && isDir)) && r.pusher(stringBytes(path)) {
atomic.StoreInt32(&r.event, int32(EvtReadNew))