tagbar: add missing default search method

This commit is contained in:
Youngjae Lee 2021-03-02 20:27:36 +09:00
parent fc639c0cf8
commit 0a7c68afb2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ function! airline#extensions#tagbar#currenttag()
endif
" function tagbar#currenttag does not exist, if filetype is not enabled
if s:airline_tagbar_last_lookup_time != localtime() && exists("*tagbar#currenttag")
let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags, get(g:, 'airline#extensions#tagbar#searchmethod', ''))
let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags, get(g:, 'airline#extensions#tagbar#searchmethod', 'nearest-stl'))
let s:airline_tagbar_last_lookup_time = localtime()
endif
return s:airline_tagbar_last_lookup_val