m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

walker: Append path separator to directories

Close #4255
This commit is contained in:
Junegunn Choi
2025-02-18 21:57:53 +09:00
parent f975b40236
commit 6fa8295ac5
2 changed files with 3 additions and 2 deletions

View File

@@ -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))