Skip to content
Myr

reader: Do not append '/' to '/'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

https://github.com/junegunn/fzf/pull/4334#issue-2966013714

authored by Junegunn Choi · committed by Junegunn Choi · parent 93cb375 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • https: //github.com/junegunn/fzf/pull/4334#issue-2966013714

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/reader.go+3 added-1 removed
321 unmodified lines
322 if strings.HasSuffix(path, ignore) {323 return filepath.SkipDir324 }325 }326 if path != sep {326 path += sep327 path += sep328 }329 }330 if ((opts.file && !isDir) || (opts.dir && isDir)) && r.pusher(stringBytes(path)) {331 atomic.StoreInt32(&r.event, int32(EvtReadNew))332 }
44 unmodified lines