Skip to content

Commit

Permalink
def: only add build tags if it's present
Browse files Browse the repository at this point in the history
fixes #1865
  • Loading branch information
fatih committed Jul 16, 2018
1 parent 03c93b2 commit cfd5968
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autoload/go/def.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfd5968

Please sign in to comment.