Skip to content

Commit

Permalink
* ivy.el (ivy-completing-read): Fix last change.
Browse files Browse the repository at this point in the history
Previously, non-literal replace-match via replace-regexp-in-string
was interpreting doubled backslashes as single ones.
  • Loading branch information
basil-conto committed May 19, 2024
1 parent 491a928 commit 6a98b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -2560,7 +2560,7 @@ INHERIT-INPUT-METHOD is currently ignored."
(car initial-input))
((and (stringp initial-input)
(not (eq collection #'read-file-name-internal)))
(ivy--string-replace "+" "\\\\+" initial-input))
(ivy--string-replace "+" "\\+" initial-input))
(initial-input))
:preselect def
:def def
Expand Down

0 comments on commit 6a98b00

Please sign in to comment.