Skip to content

Commit

Permalink
cmd: fix runtime error for :GoCoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Jun 2, 2016
1 parent acb2d8c commit e6a7616
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/go/cmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,10 @@ function! go#cmd#Test(bang, compile, ...)
let id = go#jobcontrol#Spawn(a:bang, "test", args)
endif

call go#jobcontrol#AddHandler(function('s:test_compile_handler'))
let s:test_compile_handlers[id] = compile_file
if a:compile
call go#jobcontrol#AddHandler(function('s:test_compile_handler'))
let s:test_compile_handlers[id] = compile_file
endif
return id
endif

Expand Down

0 comments on commit e6a7616

Please sign in to comment.