From a7bb07756d28f91aa918f0b7df15d011bf23f8ac Mon Sep 17 00:00:00 2001 From: fnussbaum Date: Sat, 7 Dec 2024 14:16:08 +0100 Subject: [PATCH] [compleseus] Fix escaping of search inputs `consult-ripgrep` expects Emacs regular expressions, not PCRE. Previously, using `SPC *` on an identifier containing `|`, like `spacemacs|defc`, would incorrectly escape the `|` character, for example. --- layers/+completion/compleseus/funcs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/+completion/compleseus/funcs.el b/layers/+completion/compleseus/funcs.el index c143a86b1c69..be6d57216ac4 100644 --- a/layers/+completion/compleseus/funcs.el +++ b/layers/+completion/compleseus/funcs.el @@ -63,7 +63,7 @@ active and `force-input' is not nil, `thing-at-point' will be returned." ) (defun spacemacs/compleseus-search (force-initial-input initial-directory) - (let* ((initial-input (rxt-quote-pcre + (let* ((initial-input (regexp-quote (spacemacs/initial-search-input force-initial-input))) (default-directory (or initial-directory (read-directory-name "Start from directory: "))))