Skip to content

Commit

Permalink
Merge pull request #3619 from bhcleek/lsp/state
Browse files Browse the repository at this point in the history
lsp: check state after checking debug mode
  • Loading branch information
bhcleek authored Dec 24, 2023
2 parents 425784a + 1aa6ebc commit 0a9c517
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autoload/go/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,11 @@ let s:logtimer = 0
function! s:debugasync(timer) abort
let s:logtimer = 0

if !go#util#HasDebug('lsp')
let s:log = []
return
endif

" set the timer to try again if Vim is in a state where we don't want to
" change the window.
let l:state = state('a')
Expand All @@ -1341,11 +1346,6 @@ function! s:debugasync(timer) abort
return
endif

if !go#util#HasDebug('lsp')
let s:log = []
return
endif

try
let l:winid = win_getid()

Expand Down

0 comments on commit 0a9c517

Please sign in to comment.