mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): fix nil client access in get_active_clients (#21524)
Fixes https://github.com/neovim/neovim/issues/21523
This commit is contained in:
parent
469f985923
commit
f62c30ad0d
@ -1845,7 +1845,8 @@ function lsp.get_active_clients(filter)
|
|||||||
for client_id in pairs(t) do
|
for client_id in pairs(t) do
|
||||||
local client = active_clients[client_id]
|
local client = active_clients[client_id]
|
||||||
if
|
if
|
||||||
(filter.id == nil or client.id == filter.id)
|
client
|
||||||
|
and (filter.id == nil or client.id == filter.id)
|
||||||
and (filter.name == nil or client.name == filter.name)
|
and (filter.name == nil or client.name == filter.name)
|
||||||
then
|
then
|
||||||
clients[#clients + 1] = client
|
clients[#clients + 1] = client
|
||||||
|
Loading…
Reference in New Issue
Block a user