mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:10:06 +08:00
Catch jobstrat error E903
ref: https://github.com/neovim/neovim/issues/8153
This commit is contained in:
parent
9838c1c09c
commit
171a7e545e
@ -101,11 +101,15 @@ endfunction
|
||||
" start a job, and return the job_id.
|
||||
function! s:self.start(argv, ...) abort
|
||||
if self.nvim_job
|
||||
try
|
||||
if len(a:000) > 0
|
||||
let job = jobstart(a:argv, a:1)
|
||||
else
|
||||
let job = jobstart(a:argv)
|
||||
endi
|
||||
catch /^Vim\%((\a\+)\)\=:E903/
|
||||
return -1
|
||||
endtry
|
||||
if job > 0
|
||||
let msg = ['process '. jobpid(job), ' run']
|
||||
call extend(self.jobs, {job : msg})
|
||||
|
@ -12,6 +12,13 @@ if exists('g:GuiLoaded')
|
||||
else
|
||||
exe 'Guifont! ' . g:spacevim_guifont
|
||||
endif
|
||||
elseif
|
||||
" As using neovim-qt by default
|
||||
|
||||
" Disable gui popupmenu
|
||||
if exists(':GuiPopupmenu') == 2
|
||||
GuiPopupmenu 0
|
||||
endif
|
||||
if g:spacevim_colorscheme !=# '' "{{{
|
||||
try
|
||||
exec 'set background=' . g:spacevim_colorscheme_bg
|
||||
|
Loading…
Reference in New Issue
Block a user