Skip to content

Commit 8145c8e

Browse files
committed
fix(chunk): skip vim.NIL diagnostic codes in display (#177)
1 parent ba133b3 commit 8145c8e

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.beads/issues.jsonl

Lines changed: 0 additions & 3 deletions
This file was deleted.

lua/tiny-inline-diagnostic/chunk.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ function M.get_chunks(opts, diags_on_line, diag_index, diag_line, cursor_line, b
415415
end
416416
diag_message = diag_message .. location_info
417417
else
418-
if show_code and diag.code then
418+
if show_code and diag.code and diag.code ~= vim.NIL then
419419
diag_message = diag_message .. " [" .. diag.code .. "]"
420420
end
421421
if show_source and diag.source then

0 commit comments

Comments
 (0)