[fzf#vim#complete#path] works in Windows

This commit is contained in:
Jan Edmund Lazo
2017-08-24 21:50:41 -04:00
parent 25ea6371b2
commit b73cec55f0
3 changed files with 20 additions and 11 deletions

View File

@@ -1252,12 +1252,13 @@ function! fzf#vim#complete(...)
let s:opts = s:eval(s:opts, 'options', s:query)
let s:opts = s:eval(s:opts, 'extra_options', s:query)
if has_key(s:opts, 'extra_options')
let s:opts.options =
\ join(filter([get(s:opts, 'options', ''), remove(s:opts, 'extra_options')], '!empty(v:val)'))
call s:merge_opts(s:opts, remove(s:opts, 'extra_options'))
endif
if has_key(s:opts, 'options')
" FIXME: fzf currently doesn't have --no-expect option
let s:opts.options = substitute(s:opts.options, '--expect=[^ ]*', '', 'g')
if type(s:opts.options) == s:TYPE.string
let s:opts.options = substitute(s:opts.options, '--expect=[^ ]*', '', 'g')
endif
endif
call feedkeys("\<Plug>(-fzf-complete-trigger)")