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:
parent
757a00d181
commit
081360916b
@ -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
|
||||
|
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user