Skip to content

Commit

Permalink
Merge pull request #406 from a5ob7r/fix_list_self_ref_link
Browse files Browse the repository at this point in the history
Fix failures to list self-referenced symlink
  • Loading branch information
lambdalisue authored Mar 24, 2022
2 parents 5403555 + 8d2c3c6 commit 45950d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/fern/scheme/file/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif
if !s:is_windows && executable('find')
function! fern#scheme#file#util#list_entries_find(path, token) abort
let l:Profile = fern#profile#start('fern#scheme#file#util#list_entries_find')
return s:Process.start(['find', a:path, '-follow', '-maxdepth', '1'], { 'token': a:token, 'reject_on_failure': 1 })
return s:Process.start(['find', '-H', a:path, '-maxdepth', '1'], { 'token': a:token, 'reject_on_failure': 1 })
\.catch({ v -> s:Promise.reject(join(v.stderr, "\n")) })
\.then({ v -> v.stdout })
\.then(s:AsyncLambda.filter_f({ v -> !empty(v) && v !=# a:path }))
Expand Down

0 comments on commit 45950d3

Please sign in to comment.