Skip to content

Commit

Permalink
Merge pull request #2724 from drichardson/use_COMSEC
Browse files Browse the repository at this point in the history
Use COMSPEC to find cmd.exe.
  • Loading branch information
bhcleek authored Feb 13, 2020
2 parents b3c3b65 + fd4baa7 commit b8213ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autoload/go/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ function! s:system(cmd, ...) abort
endif

if go#util#IsWin()
let l:cmdexe=go#util#Join($SYSTEMROOT, 'System32', 'cmd.exe')
if executable(l:cmdexe)
let &shell = l:cmdexe
if executable($COMSPEC)
let &shell = $COMSPEC
set shellcmdflag=/C
endif
endif
Expand Down

0 comments on commit b8213ab

Please sign in to comment.