Skip to content

Commit

Permalink
[compleseus] Fix escaping of search inputs
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
fnussbaum committed Dec 8, 2024
1 parent 862e955 commit a7bb077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/+completion/compleseus/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -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: "))))
Expand Down

0 comments on commit a7bb077

Please sign in to comment.