From 0a7c68afb214980b74aa1d7421e5e438ad7a5e91 Mon Sep 17 00:00:00 2001 From: Youngjae Lee Date: Tue, 2 Mar 2021 20:27:36 +0900 Subject: [PATCH] tagbar: add missing default search method --- autoload/airline/extensions/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tagbar.vim b/autoload/airline/extensions/tagbar.vim index 264f8350..f4b0e867 100644 --- a/autoload/airline/extensions/tagbar.vim +++ b/autoload/airline/extensions/tagbar.vim @@ -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