mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +08:00
[BTags] Fix "tag commnads" argument
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user