mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +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.
|
" start a job, and return the job_id.
|
||||||
function! s:self.start(argv, ...) abort
|
function! s:self.start(argv, ...) abort
|
||||||
if self.nvim_job
|
if self.nvim_job
|
||||||
|
try
|
||||||
if len(a:000) > 0
|
if len(a:000) > 0
|
||||||
let job = jobstart(a:argv, a:1)
|
let job = jobstart(a:argv, a:1)
|
||||||
else
|
else
|
||||||
let job = jobstart(a:argv)
|
let job = jobstart(a:argv)
|
||||||
endi
|
endi
|
||||||
|
catch /^Vim\%((\a\+)\)\=:E903/
|
||||||
|
return -1
|
||||||
|
endtry
|
||||||
if job > 0
|
if job > 0
|
||||||
let msg = ['process '. jobpid(job), ' run']
|
let msg = ['process '. jobpid(job), ' run']
|
||||||
call extend(self.jobs, {job : msg})
|
call extend(self.jobs, {job : msg})
|
||||||
|
@ -12,6 +12,13 @@ if exists('g:GuiLoaded')
|
|||||||
else
|
else
|
||||||
exe 'Guifont! ' . g:spacevim_guifont
|
exe 'Guifont! ' . g:spacevim_guifont
|
||||||
endif
|
endif
|
||||||
|
elseif
|
||||||
|
" As using neovim-qt by default
|
||||||
|
|
||||||
|
" Disable gui popupmenu
|
||||||
|
if exists(':GuiPopupmenu') == 2
|
||||||
|
GuiPopupmenu 0
|
||||||
|
endif
|
||||||
if g:spacevim_colorscheme !=# '' "{{{
|
if g:spacevim_colorscheme !=# '' "{{{
|
||||||
try
|
try
|
||||||
exec 'set background=' . g:spacevim_colorscheme_bg
|
exec 'set background=' . g:spacevim_colorscheme_bg
|
||||||
|
Loading…
Reference in New Issue
Block a user