fix: live_grep throws an error if you insert \ (#378)

This commit is contained in:
elianiva
2021-01-03 17:59:16 +07:00
committed by GitHub
parent f15af583eb
commit c3806f46b9

View File

@@ -19,6 +19,8 @@ files.live_grep = function(opts)
return nil
end
if string.match(prompt, "[\\|%(%)]") then prompt = "" end
return flatten { conf.vimgrep_arguments, prompt }
end,
opts.entry_maker or make_entry.gen_from_vimgrep(opts),