mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Specify job command as a string on Windows.
Specifying the command as a list seems to be less reliable. See #377.
This commit is contained in:
@@ -59,11 +59,7 @@ function! gitgutter#async#execute(cmd) abort
|
|||||||
if has('unix')
|
if has('unix')
|
||||||
let command = ["sh", "-c", a:cmd]
|
let command = ["sh", "-c", a:cmd]
|
||||||
elseif has('win32')
|
elseif has('win32')
|
||||||
" Help docs recommend {command} be a string on Windows. But I think
|
let command = "cmd.exe /c ".a:cmd
|
||||||
" 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]
|
|
||||||
else
|
else
|
||||||
throw 'unknown os'
|
throw 'unknown os'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user