Skip to content

Commit 1aa6ebc

Browse files
committed
lsp: check state after checking debug mode
Fixes fatih#3618
1 parent 425784a commit 1aa6ebc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

autoload/go/lsp.vim

+5-5
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,11 @@ let s:logtimer = 0
13321332
function! s:debugasync(timer) abort
13331333
let s:logtimer = 0
13341334

1335+
if !go#util#HasDebug('lsp')
1336+
let s:log = []
1337+
return
1338+
endif
1339+
13351340
" set the timer to try again if Vim is in a state where we don't want to
13361341
" change the window.
13371342
let l:state = state('a')
@@ -1341,11 +1346,6 @@ function! s:debugasync(timer) abort
13411346
return
13421347
endif
13431348

1344-
if !go#util#HasDebug('lsp')
1345-
let s:log = []
1346-
return
1347-
endif
1348-
13491349
try
13501350
let l:winid = win_getid()
13511351

0 commit comments

Comments
 (0)