Tweak check for Win32 shell

References https://github.com/tpope/vim-fugitive/issues/1079
This commit is contained in:
Tim Pope
2018-08-18 23:14:54 -04:00
parent 7b0aa58090
commit 8589246545

View File

@@ -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