Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxguo committed Dec 15, 2023
1 parent ba8f431 commit a3b82af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload/go/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function! go#config#SnippetEngine() abort
endfunction

function! go#config#PlayBrowserCommand() abort
if go#util#IsWin()
if go#util#IsWin() || system('uname') =~ 'MINGW'
let go_play_browser_command = '!start rundll32 url.dll,FileProtocolHandler %URL%'
elseif go#util#IsMac()
let go_play_browser_command = 'open %URL%'
Expand Down
3 changes: 1 addition & 2 deletions autoload/go/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ endfunction

" IsWin returns 1 if current OS is Windows or 0 otherwise
" Note that has('win32') is always 1 when has('win64') is 1, so has('win32') is enough.
" has('win32unix') for Cygwin (MSYS2, GitBash etc.)
function! go#util#IsWin() abort
return has('win32') || has('win32unix')
return has('win32')
endfunction

" IsMac returns 1 if current OS is macOS or 0 otherwise.
Expand Down

0 comments on commit a3b82af

Please sign in to comment.