fix(picker.grep): off-by-one for grep results col

This commit is contained in:
Folke Lemaitre 2025-01-23 21:14:13 +01:00
parent da5edaf9d6
commit e3455ef4dc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -127,7 +127,7 @@ function M.grep(opts, ctx)
else else
item.line = text item.line = text
item.file = file item.file = file
item.pos = { tonumber(line), tonumber(col) } item.pos = { tonumber(line), tonumber(col) - 1 }
end end
end, end,
}, },