mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(picker.grep): correctly insert args from pattern. See #601
This commit is contained in:
parent
6b7705c7ed
commit
8601a8ced3
1 changed files with 3 additions and 2 deletions
|
@ -69,11 +69,12 @@ local function get_cmd(opts, filter)
|
|||
-- extra args
|
||||
vim.list_extend(args, opts.args or {})
|
||||
|
||||
args[#args + 1] = "--"
|
||||
|
||||
-- search pattern
|
||||
local pattern, pargs = Snacks.picker.util.parse(filter.search)
|
||||
dd(pattern, pargs)
|
||||
vim.list_extend(args, pargs)
|
||||
|
||||
args[#args + 1] = "--"
|
||||
table.insert(args, pattern)
|
||||
|
||||
local paths = {} ---@type string[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue