diff options
author | Raphael <glepnir@neovim.pro> | 2023-07-04 20:30:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 05:30:31 -0700 |
commit | cf5f1492d702f940934b0b40024d1741e4474542 (patch) | |
tree | 2444280f368c471efb19f52d9461d1c830fc895c /runtime/lua/vim/lsp/util.lua | |
parent | cebc00603ea39871d37167ece1615d0a5716479d (diff) | |
download | rneovim-cf5f1492d702f940934b0b40024d1741e4474542.tar.gz rneovim-cf5f1492d702f940934b0b40024d1741e4474542.tar.bz2 rneovim-cf5f1492d702f940934b0b40024d1741e4474542.zip |
fix(lsp): revert change to buf.clear_references() #24238
Problem: in #24046 the signature of buf.clear_references() changed, which
indirectly breaks callers that were passing "ignored" args.
Solution: because util.buf_clear_references() already defaulted to "current buffer",
the change to buf.clear_references() isn't actually needed, so just revert it.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 6cb91417f2..8d6f88bb2c 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -1769,9 +1769,9 @@ do --[[ References ]] --- Removes document highlights from a buffer. --- - ---@param bufnr integer Buffer id + ---@param bufnr integer|nil Buffer id function M.buf_clear_references(bufnr) - validate({ bufnr = { bufnr, { 'n', 'nil' }, true } }) + validate({ bufnr = { bufnr, { 'n' }, true } }) api.nvim_buf_clear_namespace(bufnr or 0, reference_ns, 0, -1) end |