diff --git a/lua/neotest/consumers/summary/canvas.lua b/lua/neotest/consumers/summary/canvas.lua index d33f07c0..04996f30 100644 --- a/lua/neotest/consumers/summary/canvas.lua +++ b/lua/neotest/consumers/summary/canvas.lua @@ -139,9 +139,9 @@ function Canvas:render_buffer(buffer) noremap = true, nowait = true, callback = function() - local linenos = {vim.fn.getpos("v")[2], vim.fn.getpos(".")[2]} + local linenos = { vim.fn.getpos("v")[2], vim.fn.getpos(".")[2] } table.sort(linenos) - for lineno = linenos[1],linenos[2] do + for lineno = linenos[1], linenos[2] do for _, callback in pairs(mappings[lineno] or {}) do callback() end