diff --git a/autoload/go/def.vim b/autoload/go/def.vim index cd79a83db1..6facba7e43 100644 --- a/autoload/go/def.vim +++ b/autoload/go/def.vim @@ -26,7 +26,13 @@ function! go#def#Jump(mode) abort endif elseif bin_name == 'guru' - let cmd = [bin_name, '-tags', go#config#BuildTags()] + let cmd = [bin_name] + let buildtags = go#config#BuildTags() + if buildtags isnot '' + let cmd += ['-tags', buildtags] + endif + + let stdin_content = "" if &modified