From 652c27a46bb3d20a0909bde7f690a37a7515f3bf Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 21 Jun 2014 11:14:51 -0400 Subject: [PATCH] Use 'shellslash' to detect Windows shell --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 1dc07e8..b53edfc 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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