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

fix(statusline): fix warning in buffer terminal

This commit is contained in:
Andres 2022-07-14 21:49:30 -05:00 committed by GitHub
parent 1db1a9d89a
commit 881759e2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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