mirror of
https://github.com/junegunn/fzf.git
synced 2025-05-19 12:50:22 -07:00
reader: Do not append '/' to '/'
https://github.com/junegunn/fzf/pull/4334#issue-2966013714
This commit is contained in:
parent
93cb3758b5
commit
9ffc2c7ca3
@ -323,8 +323,10 @@ func (r *Reader) readFiles(roots []string, opts walkerOpts, ignores []string) bo
|
|||||||
return filepath.SkipDir
|
return filepath.SkipDir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if path != sep {
|
||||||
path += sep
|
path += sep
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ((opts.file && !isDir) || (opts.dir && isDir)) && r.pusher(stringBytes(path)) {
|
if ((opts.file && !isDir) || (opts.dir && isDir)) && r.pusher(stringBytes(path)) {
|
||||||
atomic.StoreInt32(&r.event, int32(EvtReadNew))
|
atomic.StoreInt32(&r.event, int32(EvtReadNew))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user