From c1c60ca90e622d575f8dc26d965a4658d42f625d Mon Sep 17 00:00:00 2001 From: MoeShin Date: Fri, 7 Jan 2022 00:58:37 +0800 Subject: [PATCH] Fix python in msys2 --- plugin/wakatime.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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