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:
parent
ae451ff754
commit
acb5af177b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue