1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:10:06 +08:00

Use :t for bufname

This commit is contained in:
wsdjeg 2017-05-12 22:41:06 +08:00
parent 757a00d181
commit 081360916b
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ function! s:update_context() abort
call add(ctx, '▼ Tab #' . page)
for _buf in tree[page]
if getbufvar(_buf, '&buflisted')
call add(ctx, ' ' . _buf . ':' . bufname(_buf))
call add(ctx, ' ' . _buf . ':' . fnamemodify(bufname(_buf), ':t'))
endif
endfor
else

View File

@ -5,7 +5,7 @@ else
endif
function! SpaceVimTabsManager#statusline(...)
if &ft ==# 'SpaceVimTabsManager'
call airline#extensions#apply_left_override('SpaceVimTabs', '')
call airline#extensions#apply_left_override('SpaceVimTabsManager', '')
" Alternatively, set the various w:airline_section variables
"let w:airline_section_a = 'SpaceVimPluginManager'
"let w:airline_section_b = ''