mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
backport: fix(lsp): resolve bufnr in buf_is_attached (#15523)
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user