1
0
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:
Eric Wong 2024-05-06 18:25:04 +08:00
parent 456d1f2856
commit db3ea12b2d

View File

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