mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
fix(statusline): fix warning in buffer terminal
This commit is contained in:
parent
1db1a9d89a
commit
881759e2ff
@ -456,7 +456,7 @@ function! SpaceVim#layers#core#statusline#get(...) abort
|
||||
\ . s:lsep
|
||||
\ . '%#SpaceVim_statusline_b# Terminal %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep
|
||||
\ . '%#SpaceVim_statusline_c# '
|
||||
\ . matchstr(bufname(), '\d\+:\zs.*')
|
||||
\ . matchstr(bufname('%'), '\d\+:\zs.*')
|
||||
if !empty(get(b:, '_spacevim_shell', ''))
|
||||
let st .= '%#SpaceVim_statusline_c# %{b:_spacevim_shell} %#SpaceVim_statusline_c_SpaceVim_statusline_z#' . s:lsep
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user