Skip to content

Commit 45950d3

Browse files
authored
Merge pull request #406 from a5ob7r/fix_list_self_ref_link
Fix failures to list self-referenced symlink
2 parents 5403555 + 8d2c3c6 commit 45950d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/fern/scheme/file/util.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif
2424
if !s:is_windows && executable('find')
2525
function! fern#scheme#file#util#list_entries_find(path, token) abort
2626
let l:Profile = fern#profile#start('fern#scheme#file#util#list_entries_find')
27-
return s:Process.start(['find', a:path, '-follow', '-maxdepth', '1'], { 'token': a:token, 'reject_on_failure': 1 })
27+
return s:Process.start(['find', '-H', a:path, '-maxdepth', '1'], { 'token': a:token, 'reject_on_failure': 1 })
2828
\.catch({ v -> s:Promise.reject(join(v.stderr, "\n")) })
2929
\.then({ v -> v.stdout })
3030
\.then(s:AsyncLambda.filter_f({ v -> !empty(v) && v !=# a:path }))

0 commit comments

Comments
 (0)