mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-12 22:47:15 +08:00
Fix incorrect example for g:tagbar_status_func (#752)
This commit is contained in:
parent
7e8aeb6970
commit
2fb3171ed7
|
@ -971,11 +971,11 @@ default statusline:
|
|||
>
|
||||
function! TagbarStatusFunc(current, sort, fname, flags, ...) abort
|
||||
let colour = a:current ? '%#StatusLine#' : '%#StatusLineNC#'
|
||||
let flagstr = join(flags, '')
|
||||
let flagstr = join(a:flags, '')
|
||||
if flagstr != ''
|
||||
let flagstr = '[' . flagstr . '] '
|
||||
endif
|
||||
return colour . '[' . sort . '] ' . flagstr . fname
|
||||
return colour . '[' . a:sort . '] ' . flagstr . a:fname
|
||||
endfunction
|
||||
let g:tagbar_status_func = 'TagbarStatusFunc'
|
||||
<
|
||||
|
|
Loading…
Reference in New Issue
Block a user