mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Factor in 8.2.0239 when checking for job env support
This commit is contained in:
@@ -474,7 +474,7 @@ endfunction
|
||||
function! s:JobOpts(cmd, env) abort
|
||||
if empty(a:env)
|
||||
return [a:cmd, {}]
|
||||
elseif has('patch-8.1.0902') && !has('nvim') && (!has('win32') || empty(filter(keys(a:env), 'exists("$" . v:val)')))
|
||||
elseif has('patch-8.2.0239') || has('patch-8.1.0902') && !has('nvim') && (!has('win32') || empty(filter(keys(a:env), 'exists("$" . v:val)')))
|
||||
return [a:cmd, {'env': a:env}]
|
||||
endif
|
||||
let envlist = map(items(a:env), 'join(v:val, "=")')
|
||||
|
||||
Reference in New Issue
Block a user