use g:tagbar_highlight_method as default in tagbar#currenttag and forward search method from :TagbarCurrentTag (#803)

* allow to specify {search-method} in :TagbarCurrentTag command

* tagbar#currenttag now uses g:tagbar_highlight_method as default search method
This commit is contained in:
magras authored and GitHub committed 2022-01-11 10:41:32 -06:00
1 parent 0441c1c6d9
commit 3188ab1ee8
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -3901,13 +3901,13 @@ function! tagbar#currenttag(fmt, default, ...) abort
if a:0 >= 2
let search_method = a:2
else
let search_method = 'nearest-stl'
let search_method = g:tagbar_highlight_method
endif
else
let longsig = 0
let fullpath = 0
let prototype = 0
let search_method = 'nearest-stl'
let search_method = g:tagbar_highlight_method
endif
if !s:Init(1)