mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-05-03 22:40:30 +02:00
Do not forward v:shell_error on command fail.
airline#system#util for nvim used to fall back to 'system' implementation on command error. This behavior caused conflict with other plugins if 'util' was executed with a failing command as part of a ShellCmdPost event. This commit makes 'util' interpret command error as persistent and not call 'system' in such a case. This commit fixes #1317.
This commit is contained in:
parent
2dae2b364e
commit
241f324b39
@ -97,10 +97,7 @@ if has('nvim')
|
|||||||
if l:id < 1
|
if l:id < 1
|
||||||
return system(a:cmd)
|
return system(a:cmd)
|
||||||
endif
|
endif
|
||||||
let l:ret_code = jobwait([l:id])
|
call jobwait([l:id])
|
||||||
if l:ret_code != [0]
|
|
||||||
return system(a:cmd)
|
|
||||||
endif
|
|
||||||
return l:config.buf
|
return l:config.buf
|
||||||
endfunction
|
endfunction
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user