Skip to content

Commit 8455457

Browse files
sudo-teeCopilot
andauthored
fix: json_formatter diagnostics text
Co-authored-by: Copilot <[email protected]>
1 parent 07eaaf4 commit 8455457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/context/json_formatter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function M.format_diagnostics_part(diagnostics, range)
6767
local short_msg = diag.message:gsub('%s+', ' '):gsub('^%s', ''):gsub('%s$', '')
6868
table.insert(
6969
diag_list,
70-
{ msg = short_msg, severity = diag.severity, pos = 'l' .. diag.lnum + 1 .. ':c' .. diag.col + 1 }
70+
{ msg = short_msg, severity = diag.severity, pos = 'l' .. (diag.lnum + 1) .. ':c' .. (diag.col + 1) }
7171
)
7272
end
7373
end

0 commit comments

Comments
 (0)