fix(picker.help): fixed help tag preview search string

This commit is contained in:
Folke Lemaitre 2025-01-14 12:45:30 +01:00
parent 1c1876ab27
commit 773e584d85
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ local uv = vim.uv or vim.loop
---@field git_log fun(opts?: snacks.picker.git.log.Config): snacks.Picker
---@field git_log_file fun(opts?: snacks.picker.git.log.Config): snacks.Picker
---@field git_log_line fun(opts?: snacks.picker.git.log.Config): snacks.Picker
---@field git_status fun(opts?: snacks.picker.Config): snacks.Picker
---@param opts snacks.picker.git.files.Config
---@type snacks.picker.finder

View file

@ -49,7 +49,7 @@ function M.help(opts)
text = fields[1],
tag = fields[1],
file = help_files[fields[2]],
search = fields[3],
search = "/\\V" .. fields[3]:sub(2),
}
if item.file then
cb(item)