mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Job environment variables are broken on Neovim
Closes https://github.com/tpope/vim-fugitive/issues/1443
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user