diff options
| author | Oleg Matrokhin <matrokhin@gmail.com> | 2020-09-17 00:09:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-16 17:09:12 -0400 |
| commit | 9766a5bec861be7fcaec3bd2574ba52ffdb11179 (patch) | |
| tree | 34857c26a19b85e9026cafbf8be65e556ea4c8c8 /lua/telescope/builtin.lua | |
| parent | e6d926e4f622cfa36234cc5200164a2bf102918f (diff) | |
fix: use double dash to fix special filenames (#87)
Co-authored-by: Oleg Matrokhin <o.matrohin@softpro.com>
Diffstat (limited to 'lua/telescope/builtin.lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 8f7f5db..606914b 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -115,7 +115,7 @@ builtin.live_grep = function(opts) return nil end - return flatten { conf.vimgrep_arguments, prompt } + return flatten { conf.vimgrep_arguments, " --", prompt } end, opts.entry_maker or make_entry.gen_from_vimgrep(opts), opts.max_results or 1000 @@ -346,7 +346,7 @@ builtin.grep_string = function(opts) pickers.new(opts, { prompt = 'Find Word', finder = finders.new_oneshot_job( - flatten { conf.vimgrep_arguments, search}, + flatten { conf.vimgrep_arguments, " --", search}, opts ), previewer = previewers.vimgrep.new(opts), |
