Job environment variables are broken on Neovim

Closes https://github.com/tpope/vim-fugitive/issues/1443
This commit is contained in:
Tim Pope
2020-01-24 05:46:41 -05:00
parent 22255613f7
commit 036fe0f084

View File

@@ -2390,7 +2390,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
\ 'PAGER': 'cat'}, 'keep')
let args = ['-c', 'advice.waitingForEditor=false'] + s:disable_colors + args
let argv = s:UserCommandList(dir) + args
if !has('patch-8.0.0902')
if !has('patch-8.0.0902') || has('nvim')
let envlist = map(items(env), 'join(v:val, "=")')
if s:executable('env')
let argv = ['env'] + envlist + argv