From 9715dbe19ea6ff22a7bfc0f7c9ac8830e9586a4b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 23 Mar 2021 13:33:28 -0400 Subject: [PATCH] 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 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index db433ee..2178863 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -404,7 +404,7 @@ endfunction function! s:JobOpts(cmd, env) abort if empty(a:env) 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}] endif let envlist = map(items(a:env), 'join(v:val, "=")')