fix: Don't pass anything if word match is empty
This commit is contained in:
@@ -345,7 +345,7 @@ builtin.grep_string = function(opts)
|
||||
local search = opts.search or vim.fn.expand("<cword>")
|
||||
|
||||
opts.entry_maker = opts.entry_maker or make_entry.gen_from_vimgrep(opts)
|
||||
opts.word_match = opts.word_match or ''
|
||||
opts.word_match = opts.word_match or nil
|
||||
|
||||
pickers.new(opts, {
|
||||
prompt = 'Find Word',
|
||||
|
||||
Reference in New Issue
Block a user