Skip to content

Commit

Permalink
Merge pull request #381 from lambdalisue/fix-complete-reveal
Browse files Browse the repository at this point in the history
Use `'.'` instead of `''` in `fnamemodify`
  • Loading branch information
lambdalisue authored Dec 29, 2021
2 parents 766bddb + 04e6540 commit 21fa529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/fern/scheme/file/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function! s:get_basepath(cmdline) abort
let fargs = fargs[index(fargs, 'Fern') + 1:]
let fargs = filter(fargs, { -> v:val[:0] !=# '-' })
let base = len(fargs) ==# 1 ? fargs[0] : ''
let base = base ==# '' ? '.' : base
return fnamemodify(base, ':p')
endfunction

Expand Down

0 comments on commit 21fa529

Please sign in to comment.