Use 'shellslash' to detect Windows shell

This commit is contained in:
Tim Pope 2014-06-21 11:14:51 -04:00
parent 336c716ba0
commit 652c27a46b

View File

@ -27,7 +27,7 @@ function! s:gsub(str,pat,rep) abort
endfunction
function! s:winshell() abort
return &shell =~# 'cmd' || &shell =~# 'power'
return exists('+shellslash') && !&shellslash
endfunction
function! s:shellesc(arg) abort