Skip to content

Commit

Permalink
Use '.' instead of '' in fnamemodify
Browse files Browse the repository at this point in the history
Close #380
  • Loading branch information
lambdalisue committed Dec 29, 2021
1 parent 766bddb commit 04e6540
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 04e6540

Please sign in to comment.