Skip to content

Commit 98c7803

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 d9c8f8d commit 98c7803

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': {},
@@ -1493,7 +1493,7 @@ function! go#debug#Restart() abort
14931493
call s:stop()
14941494

14951495
let s:state = {
1496-
\ 'rpcid': 1,
1496+
\ 'rpcid': 0,
14971497
\ 'running': 0,
14981498
\ 'currentThread': {},
14991499
\ 'localVars': {},

0 commit comments

Comments
 (0)