fix: live_grep search_dirs and grep_open_files opts

fix #2048
This commit is contained in:
Simon Hauser
2022-07-07 19:16:13 +02:00
parent ddf60d2bbe
commit a36500c7ee

View File

@@ -102,9 +102,9 @@ files.live_grep = function(opts)
local search_list = {} local search_list = {}
if grep_open_files then if grep_open_files then
table.insert(search_list, search_dirs)
elseif search_dirs then
search_list = filelist search_list = filelist
elseif search_dirs then
search_list = search_dirs
end end
return flatten { vimgrep_arguments, additional_args, "--", prompt, search_list } return flatten { vimgrep_arguments, additional_args, "--", prompt, search_list }