mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Replace broken check for nvim 0.5.0
Apparently has('nvim-0.5.0') actually means "any nightly release after
0.4.4". I guess we'll have to settle for 0.5.1?
Closes https://github.com/tpope/vim-fugitive/issues/1709
This commit is contained in:
@@ -404,7 +404,7 @@ endfunction
|
|||||||
function! s:JobOpts(cmd, env) abort
|
function! s:JobOpts(cmd, env) abort
|
||||||
if empty(a:env)
|
if empty(a:env)
|
||||||
return [a:cmd, {}]
|
return [a:cmd, {}]
|
||||||
elseif has('patch-8.2.0239') || has('nvim-0.5.0') || has('patch-8.1.0902') && !has('nvim') && (!has('win32') || empty(filter(keys(a:env), 'exists("$" . v:val)')))
|
elseif has('patch-8.2.0239') || has('nvim-0.5.1') || has('patch-8.1.0902') && !has('nvim') && (!has('win32') || empty(filter(keys(a:env), 'exists("$" . v:val)')))
|
||||||
return [a:cmd, {'env': a:env}]
|
return [a:cmd, {'env': a:env}]
|
||||||
endif
|
endif
|
||||||
let envlist = map(items(a:env), 'join(v:val, "=")')
|
let envlist = map(items(a:env), 'join(v:val, "=")')
|
||||||
|
|||||||
Reference in New Issue
Block a user