diff --git a/lisp/replace.el b/lisp/replace.el index 65a2b41f1ea..41debdd9cf7 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -2014,6 +2014,7 @@ It is called with three arguments, as if it were (let* ((isearch-regexp regexp-flag) (isearch-word (or delimited-flag (and replace-character-fold + (not regexp-flag) #'character-fold-to-regexp))) (isearch-lax-whitespace replace-lax-whitespace)