From e43efc389e2ae76bd9baa0cad9b8140e77646765 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Tue, 22 Sep 2020 12:50:03 -0400 Subject: fix: Don't pass anything if word match is empty --- lua/telescope/builtin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/telescope/builtin.lua') 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("") 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', -- cgit v1.2.3