Use 'shellslash' to detect Windows shell
This commit is contained in:
parent
336c716ba0
commit
652c27a46b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user