[BTags] Fix "tag commnads" argument
This commit is contained in:
parent
dade777e6d
commit
fcca65bbe5
1 changed files with 4 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue