fix(vertico): don't shell-quote consult-ripgrep-args

We were using `shell-quote-argument`, which is meant for passing file
names, strings and so on, not command-line arguments. For example,
`(shell-quote-argument "--foo=bar")` yields "--foo\\=bar", which is
obviiously invalid unless we're trying to pass an option named '--foo\'.

At any rate, there is no quoting/escaping for shells in the default
value of `consult-ripgrep-args`, so it doesn't look like this is
something we need to do.
This commit is contained in:
45mm 2024-01-18 16:20:15 +05:30 committed by Henrik Lissner
parent ae451ff754
commit acb5af177b

View file

@ -31,7 +31,7 @@
"--path-separator / --smart-case --no-heading " "--path-separator / --smart-case --no-heading "
"--with-filename --line-number --search-zip " "--with-filename --line-number --search-zip "
"--hidden -g !.git -g !.svn -g !.hg " "--hidden -g !.git -g !.svn -g !.hg "
(mapconcat #'shell-quote-argument args " "))) (mapconcat #'identity args " ")))
(prompt (if (stringp prompt) (string-trim prompt) "Search")) (prompt (if (stringp prompt) (string-trim prompt) "Search"))
(query (or query (query (or query
(when (doom-region-active-p) (when (doom-region-active-p)