Skip to content

Commit

Permalink
Avoid assert when tracing error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Dec 4, 2023
1 parent b97b901 commit 5fb82ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/navigator/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ function M.find_definition(range, bufnr)
if definition then

-- 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
end
end
Expand Down

0 comments on commit 5fb82ee

Please sign in to comment.