Skip to content

Commit

Permalink
fix(diagnostics): ruff generates a vim.NIL diag code. Closes #527
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 4, 2024
1 parent 12dc19a commit edd9684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ M.formatters = {
}
end,
code = function(ctx)
if not ctx.item.code then
if not ctx.item.code or ctx.item.code == vim.NIL then
return
end
return {
Expand Down

0 comments on commit edd9684

Please sign in to comment.