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/buf.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/buf.lua')
-rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index c742505ec6..bac66b671d 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -581,9 +581,8 @@ function M.document_highlight() end --- Removes document highlights from current buffer. ---- @param bufnr integer|nil -function M.clear_references(bufnr) - util.buf_clear_references(bufnr or 0) +function M.clear_references() + util.buf_clear_references() end ---@private |