1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

Merge pull request #147 from zhaocai/master

Export tagbar#currentfile() function
This commit is contained in:
Jan Larres
2013-06-02 21:56:10 -07:00

View File

@@ -3750,6 +3750,17 @@ function! tagbar#currenttag(fmt, default, ...) abort
endif
endfunction
" tagbar#currentfile() {{{2
function! tagbar#currentfile() abort
let filename = ''
if !empty(s:known_files.getCurrent())
let filename = fnamemodify(s:known_files.getCurrent().fpath, ':t')
endif
return filename
endfunction
" tagbar#gettypeconfig() {{{2
function! tagbar#gettypeconfig(type) abort
if !s:Init(1)