1
0
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:
magras
2022-01-11 19:41:32 +03:00
committed by GitHub
parent 0441c1c6d9
commit 3188ab1ee8
3 changed files with 6 additions and 6 deletions

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)