1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:40:05 +08:00

fix(cscope): check cscope executable

This commit is contained in:
wsdjeg 2022-04-05 23:15:10 +08:00
parent 0d61594246
commit 77378e06df

View File

@ -436,6 +436,10 @@ function! s:create_database(dir, init, load) abort
endfunction
function! s:run_create_database_job(dir, cscope_files, cscope_db, load) abort
if !executable(g:cscope_cmd)
call s:notify.notify('''cscope'' is not executable!', 'WarningMsg')
return
endif
let jobid = s:JOB.start([g:cscope_cmd, '-b', '-i', a:cscope_files, '-f', a:cscope_db], {
\ 'on_exit' : function('s:on_create_db_exit')
\ })