diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 87d8d7c..a26c407 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -154,7 +154,11 @@ let s:VERSION = '9.0.1' \ 'callback': {channel, output -> s:AsyncInstallHandler(output)}}) elseif s:nvim_async if s:IsWindows() - let job_cmd = cmd + if &shell =~ 'cmd' + let job_cmd = cmd + else + let job_cmd = [&shell, '-c', s:JoinArgs(cmd)] + endif else let job_cmd = [&shell, &shellcmdflag, s:JoinArgs(cmd)] endif