From 81eb35ae8d4f3b0446893d86be4f12fdb100fda5 Mon Sep 17 00:00:00 2001 From: rwxguo <10892928+rwxguo@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:39:25 +0800 Subject: [PATCH] update --- autoload/go/lsp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/go/lsp.vim b/autoload/go/lsp.vim index aa8e787b3a..ef7ec4008a 100644 --- a/autoload/go/lsp.vim +++ b/autoload/go/lsp.vim @@ -619,7 +619,7 @@ function! s:definitionHandler(next, msg) abort dict let l:msguri = go#path#FromURI(l:msg.uri) " remove the comma in cygwin unix-like windwos path " e.g. '/c:/path' to '/c/path' - if system('uname') =~ 'MINGW' || system('uname') =~ 'CYGWIN' + if has('win32unix') && (system('uname') =~ 'MINGW' || system('uname') =~ 'CYGWIN') if l:msguri[2:3] is# ':/' let l:msguri = l:msguri[0:1] . l:msguri[3:] endif