From 036fe0f08460ad64e3b2e06e3b7b299269c5ccc9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 24 Jan 2020 05:46:41 -0500 Subject: [PATCH] Job environment variables are broken on Neovim Closes https://github.com/tpope/vim-fugitive/issues/1443 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 246cdc5..21e652d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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