From: Yegappan Lakshmanan <4298407+yegappan@users.noreply.github.com> Date: Wed, 24 May 2023 03:22:21 +0000 (-0700) Subject: Merge branch 'main' into focus-fix X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a6cf53e4fbef02d2aff7aca2c10258c9711086bf;p=vim-lsp.git Merge branch 'main' into focus-fix --- a6cf53e4fbef02d2aff7aca2c10258c9711086bf diff --cc autoload/lsp/diag.vim index 249ccb9,5304a5f..e7aa84b --- a/autoload/lsp/diag.vim +++ b/autoload/lsp/diag.vim @@@ -421,11 -421,11 +421,15 @@@ export def ShowAllDiags(): voi return endif + var save_winid = win_getid() + # make the diagnostics error list the active one and open it + var LspQfId: number = getbufvar(bufnr(), 'LspQfId', 0) + var LspQfNr: number = getloclist(0, {id: LspQfId, nr: 0}).nr + exe $':{LspQfNr} lhistory' :lopen + if !opt.lspOptions.keepFocusInDiags + save_winid->win_gotoid() + endif enddef # Display the message of 'diag' in a popup window right below the position in