diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-16 12:00:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 12:00:13 -0700 |
commit | 7d67bd58655052103f3891122f0e6fe30ae1f829 (patch) | |
tree | 778b8b9ebdf8cec2d90c77eece08abdad94329c8 /runtime/lua/vim/lsp.lua | |
parent | 942b16adf7312c243fb27e579fa5da794fa0f502 (diff) | |
parent | 2132c063af3adf1d612359e0ed42c7cbd8b4290c (diff) | |
download | rneovim-7d67bd58655052103f3891122f0e6fe30ae1f829.tar.gz rneovim-7d67bd58655052103f3891122f0e6fe30ae1f829.tar.bz2 rneovim-7d67bd58655052103f3891122f0e6fe30ae1f829.zip |
Merge #15677 release-0.5: backports
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 75faf9bcc7..6575e453da 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -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. |