mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-08 05:24:47 +08:00
[fzf#vim#complete] append --no-expect to options
Reference: https://github.com/junegunn/fzf.vim/pull/436#discussion_r135379047
This commit is contained in:
@@ -1255,9 +1255,10 @@ function! fzf#vim#complete(...)
|
|||||||
call s:merge_opts(s:opts, remove(s:opts, 'extra_options'))
|
call s:merge_opts(s:opts, remove(s:opts, 'extra_options'))
|
||||||
endif
|
endif
|
||||||
if has_key(s:opts, 'options')
|
if has_key(s:opts, 'options')
|
||||||
" FIXME: fzf currently doesn't have --no-expect option
|
if type(s:opts.options) == s:TYPE.list
|
||||||
if type(s:opts.options) == s:TYPE.string
|
call add(s:opts.options, '--no-expect')
|
||||||
let s:opts.options = substitute(s:opts.options, '--expect=[^ ]*', '', 'g')
|
else
|
||||||
|
let s:opts.options .= ' --no-expect'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user