Avoid assert when tracing error msg

pull/296/head
ray-x 6 months ago
parent b97b90140e
commit 5fb82ee1bc

@ -109,7 +109,10 @@ function M.find_definition(range, bufnr)
if definition then if definition then
-- stylua: ignore start -- stylua: ignore start
trace( 'error: def not found in ', bufnr, definition:range(), definition:type(), definition:parent():type()) trace( 'error: def not found in ', bufnr, definition:range(), definition:type())
if definition:parent() then
trace("def not found", definition:parent():type())
end
-- stylua: ignore end -- stylua: ignore end
end end
end end

Loading…
Cancel
Save