mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:00:04 +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)
|
call add(ctx, '▼ Tab #' . page)
|
||||||
for _buf in tree[page]
|
for _buf in tree[page]
|
||||||
if getbufvar(_buf, '&buflisted')
|
if getbufvar(_buf, '&buflisted')
|
||||||
call add(ctx, ' ' . _buf . ':' . bufname(_buf))
|
call add(ctx, ' ' . _buf . ':' . fnamemodify(bufname(_buf), ':t'))
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
|
@ -5,7 +5,7 @@ else
|
|||||||
endif
|
endif
|
||||||
function! SpaceVimTabsManager#statusline(...)
|
function! SpaceVimTabsManager#statusline(...)
|
||||||
if &ft ==# 'SpaceVimTabsManager'
|
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
|
" Alternatively, set the various w:airline_section variables
|
||||||
"let w:airline_section_a = 'SpaceVimPluginManager'
|
"let w:airline_section_a = 'SpaceVimPluginManager'
|
||||||
"let w:airline_section_b = ''
|
"let w:airline_section_b = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user