mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
Fix statuline in old split windows (#3644)
This commit is contained in:
parent
f11c31eac7
commit
cf345827b5
@ -626,17 +626,15 @@ else
|
||||
let gname = get(s:guide_group, 'name', '')
|
||||
if !empty(gname)
|
||||
let gname = ' - ' . gname[1:]
|
||||
let gname = substitute(gname,' ', '\\ ', 'g')
|
||||
endif
|
||||
let keys = get(s:, 'prefix_key_inp', '')
|
||||
let keys = substitute(keys, '\', '\\\', 'g')
|
||||
call setbufvar(s:bufnr, '&statusline', '%#LeaderGuiderPrompt#\ Guide:\ ' .
|
||||
call setbufvar(s:bufnr, '&statusline', '%#LeaderGuiderPrompt# Guide: ' .
|
||||
\ '%#LeaderGuiderSep1#' . s:lsep .
|
||||
\ '%#LeaderGuiderName#\ ' .
|
||||
\ '%#LeaderGuiderName# ' .
|
||||
\ SpaceVim#mapping#leader#getName(s:prefix_key)
|
||||
\ . keys . gname
|
||||
\ . '\ %#LeaderGuiderSep2#' . s:lsep . '%#LeaderGuiderFill#'
|
||||
\ . s:guide_help_msg(1))
|
||||
\ . ' %#LeaderGuiderSep2#' . s:lsep . '%#LeaderGuiderFill#'
|
||||
\ . s:guide_help_msg(0))
|
||||
endfunction
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user