fix: add no more flags delimiter for ripgrep (#1217)
This matches the behavior of fzf, if a user needs to pass additional arguments they can use additional_args or change vimgrep_arguments.
This commit is contained in:
@@ -93,7 +93,7 @@ files.live_grep = function(opts)
|
||||
search_list = filelist
|
||||
end
|
||||
|
||||
return flatten { vimgrep_arguments, additional_args, prompt, search_list }
|
||||
return flatten { vimgrep_arguments, additional_args, "--", prompt, search_list }
|
||||
end, opts.entry_maker or make_entry.gen_from_vimgrep(
|
||||
opts
|
||||
), opts.max_results, opts.cwd)
|
||||
@@ -131,6 +131,7 @@ files.grep_string = function(opts)
|
||||
vimgrep_arguments,
|
||||
additional_args,
|
||||
word_match,
|
||||
"--",
|
||||
search,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user