fix: live_grep throws an error if you insert \ (#378)
This commit is contained in:
@@ -19,6 +19,8 @@ files.live_grep = function(opts)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if string.match(prompt, "[\\|%(%)]") then prompt = "" end
|
||||||
|
|
||||||
return flatten { conf.vimgrep_arguments, prompt }
|
return flatten { conf.vimgrep_arguments, prompt }
|
||||||
end,
|
end,
|
||||||
opts.entry_maker or make_entry.gen_from_vimgrep(opts),
|
opts.entry_maker or make_entry.gen_from_vimgrep(opts),
|
||||||
|
|||||||
Reference in New Issue
Block a user