mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 11:48:23 +00:00
fix(picker.grep): off-by-one for grep results col
This commit is contained in:
parent
da5edaf9d6
commit
e3455ef4dc
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue