From 7b81a8a22607f073b76b106e2d5e63cc936b0d25 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 23 Dec 2016 11:20:17 +0000 Subject: [PATCH] Specify job command as a string on Windows. Specifying the command as a list seems to be less reliable. See #377. --- autoload/gitgutter/async.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index 35fdf23..5b2428b 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -59,11 +59,7 @@ function! gitgutter#async#execute(cmd) abort if has('unix') let command = ["sh", "-c", a:cmd] elseif has('win32') - " Help docs recommend {command} be a string on Windows. But I think - " they also say that will run the command directly, which I believe would - " mean the redirection and pipe stuff wouldn't work. - " let command = "cmd.exe /c ".a:cmd - let command = ["cmd.exe", "/c", a:cmd] + let command = "cmd.exe /c ".a:cmd else throw 'unknown os' endif