mirror of
https://github.com/gryf/tagbar.git
synced 2026-02-13 12:25:46 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user