Skip to content

Commit

Permalink
Fix neovim async running of install script on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Jan 6, 2022
1 parent 1d87845 commit 55d42cf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,8 @@ let s:VERSION = '9.0.1'
\ 'stoponexit': '',
\ 'callback': {channel, output -> s:AsyncInstallHandler(output)}})
elseif s:nvim_async
if s:IsWindows()
if &shell =~ 'cmd'
let job_cmd = cmd
else
let job_cmd = [&shell, '-c', s:JoinArgs(cmd)]
endif
if s:IsWindows() && &shell =~ 'cmd'
let job_cmd = cmd
else
let job_cmd = [&shell, &shellcmdflag, s:JoinArgs(cmd)]
endif
Expand Down

0 comments on commit 55d42cf

Please sign in to comment.