Skip to content

Commit ae7bed2

Browse files
committed
debug: fix off by one error in request ids
Start tracking the id on requests start at 1 instead of 2 by initializing the value to 0; it's incremented before set on outgoing requests.
1 parent 3aac529 commit ae7bed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/go/debug.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ scriptencoding utf-8
66

77
if !exists('s:state')
88
let s:state = {
9-
\ 'rpcid': 1,
9+
\ 'rpcid': 0,
1010
\ 'running': 0,
1111
\ 'currentThread': {},
1212
\ 'localVars': {},
@@ -1485,7 +1485,7 @@ function! go#debug#Restart() abort
14851485
call s:stop()
14861486

14871487
let s:state = {
1488-
\ 'rpcid': 1,
1488+
\ 'rpcid': 0,
14891489
\ 'running': 0,
14901490
\ 'currentThread': {},
14911491
\ 'localVars': {},

0 commit comments

Comments
 (0)