From 8589246545e995206331f63adc6d09b7659dc13d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 18 Aug 2018 23:14:54 -0400 Subject: [PATCH] Tweak check for Win32 shell References https://github.com/tpope/vim-fugitive/issues/1079 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 16b562d..bf80df6 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -40,7 +40,7 @@ function! s:Uniq(list) abort endfunction function! s:winshell() abort - return &shell =~? 'cmd' || exists('+shellslash') && !&shellslash + return exists('+shellslash') && !&shellslash && &shellcmdflag !~# '^-' endfunction function! s:shellesc(arg) abort