Skip to content

Commit 2d2f9f7

Browse files
authored
Merge pull request #2015 from bhcleek/fix-debug-stop
fix errors on :GoDebugStop
2 parents 7c03bf5 + 4e0c625 commit 2d2f9f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/go/debug.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,11 @@ function! s:clearState() abort
251251
endfunction
252252

253253
function! s:stop() abort
254+
" TODO(bc): call Detach
255+
call go#job#Stop(s:state['job'])
256+
254257
call s:clearState()
255258
if has_key(s:state, 'job')
256-
" TODO(bc): call Detach
257-
call go#job#Stop(s:state['job'])
258259
call remove(s:state, 'job')
259260
endif
260261

0 commit comments

Comments
 (0)