From 241f324b39a89e8e6d3ba3b78f2f048a9172dffe Mon Sep 17 00:00:00 2001 From: Grzegorz Milka Date: Sun, 20 Nov 2016 10:16:13 +0100 Subject: [PATCH] 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. --- autoload/airline/util.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autoload/airline/util.vim b/autoload/airline/util.vim index c05f3b16..72406aed 100644 --- a/autoload/airline/util.vim +++ b/autoload/airline/util.vim @@ -97,10 +97,7 @@ if has('nvim') if l:id < 1 return system(a:cmd) endif - let l:ret_code = jobwait([l:id]) - if l:ret_code != [0] - return system(a:cmd) - endif + call jobwait([l:id]) return l:config.buf endfunction else