mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
fix(ctrlg): fix filename format & clear highlight
This commit is contained in:
parent
456d1f2856
commit
db3ea12b2d
@ -26,7 +26,7 @@ function! SpaceVim#plugins#ctrlg#display() abort
|
||||
let project_name = ''
|
||||
endif
|
||||
|
||||
let file = fnamemodify(expand('%'), '.')
|
||||
let file = fnamemodify(expand('%'), ':.')
|
||||
|
||||
if !empty(project_name)
|
||||
echohl Constant | echo project_name
|
||||
@ -35,6 +35,7 @@ function! SpaceVim#plugins#ctrlg#display() abort
|
||||
echohl Special | echon pwd
|
||||
echohl WarningMsg | echon " >> "
|
||||
echohl Directory | echon file
|
||||
echohl NONE
|
||||
endfun
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
|
Loading…
Reference in New Issue
Block a user