mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user