diff --git a/lua/trouble/format.lua b/lua/trouble/format.lua index a8054afe..6f6da86f 100644 --- a/lua/trouble/format.lua +++ b/lua/trouble/format.lua @@ -46,7 +46,7 @@ end M.formatters = { pos = function(ctx) return { - text = "[" .. (ctx.item.pos[1] + 1) .. ", " .. ctx.item.pos[2] .. "]", + text = "[" .. ctx.item.pos[1] .. ", " .. (ctx.item.pos[2] + 1) .. "]", } end, severity = function(ctx)