mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
backport: fix(lsp): resolve bufnr in buf_is_attached (#15523)
This commit is contained in:
parent
51d6b26729
commit
132053c1d2
@ -1150,7 +1150,7 @@ end
|
||||
---@param bufnr (number) Buffer handle, or 0 for current
|
||||
---@param client_id (number) the client id
|
||||
function lsp.buf_is_attached(bufnr, client_id)
|
||||
return (all_buffer_active_clients[bufnr] or {})[client_id] == true
|
||||
return (all_buffer_active_clients[resolve_bufnr(bufnr)] or {})[client_id] == true
|
||||
end
|
||||
|
||||
--- Gets a client by id, or nil if the id is invalid.
|
||||
|
Loading…
Reference in New Issue
Block a user