diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index e52cfb7..40dcf42 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -701,9 +701,12 @@ endfunction " query, [[tag commands], options] function! fzf#vim#buffer_tags(query, ...) let args = copy(a:000) - let tag_cmds = len(args) > 1 ? remove(args, 0) : [ + let tag_cmds = (len(args) > 1 && type(args[0]) != type({})) ? remove(args, 0) : [ \ printf('ctags -f - --sort=no --excmd=number --language-force=%s %s 2>/dev/null', &filetype, expand('%:S')), \ printf('ctags -f - --sort=no --excmd=number %s 2>/dev/null', expand('%:S'))] + if type(tag_cmds) != type([]) + let tag_cmds = [tag_cmds] + endif try return s:fzf('btags', { \ 'source': s:btags_source(tag_cmds),