diff --git a/autoload/SpaceVim/layers/core/statusline.vim b/autoload/SpaceVim/layers/core/statusline.vim index c082fa2ba..b9d77b4d0 100644 --- a/autoload/SpaceVim/layers/core/statusline.vim +++ b/autoload/SpaceVim/layers/core/statusline.vim @@ -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