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

Export tagbar#currentfile() function

This commit is contained in:
Zhao Cai
2013-05-15 08:00:08 -04:00
parent 24915dbe24
commit 070a75cb04

View File

@@ -3747,6 +3747,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)