mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:10: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 = ''
|
let project_name = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let file = fnamemodify(expand('%'), '.')
|
let file = fnamemodify(expand('%'), ':.')
|
||||||
|
|
||||||
if !empty(project_name)
|
if !empty(project_name)
|
||||||
echohl Constant | echo project_name
|
echohl Constant | echo project_name
|
||||||
@ -35,6 +35,7 @@ function! SpaceVim#plugins#ctrlg#display() abort
|
|||||||
echohl Special | echon pwd
|
echohl Special | echon pwd
|
||||||
echohl WarningMsg | echon " >> "
|
echohl WarningMsg | echon " >> "
|
||||||
echohl Directory | echon file
|
echohl Directory | echon file
|
||||||
|
echohl NONE
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
|
Loading…
Reference in New Issue
Block a user