diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-22 12:50:03 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-22 12:50:03 -0400 |
| commit | e43efc389e2ae76bd9baa0cad9b8140e77646765 (patch) | |
| tree | 48955bb029757331dfa9ef284d06526593fb2a6b /lua/telescope/builtin.lua | |
| parent | 941fb160c5397e243e55f55d1f01608b0b360a6e (diff) | |
fix: Don't pass anything if word match is empty
Diffstat (limited to 'lua/telescope/builtin.lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index d1a8f08..5264ca3 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -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', |
