branch: externals/corfu
commit e35977c7254b64c164e52c7573aa70f4c1fc6d2f
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
completion--replace does not mutate the string since Emacs 29
---
corfu.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/corfu.el b/corfu.el
index 1f3d59195d..a8e83560d3 100644
--- a/corfu.el
+++ b/corfu.el
@@ -363,9 +363,7 @@ It is recommended to avoid changing these parameters.")
(defun corfu--replace (beg end str)
"Replace range between BEG and END with STR."
(unless (equal str (buffer-substring-no-properties beg end))
- ;; bug#55205: completion--replace removed properties as an unwanted
- ;; side-effect. We also don't want to leave text properties.
- (completion--replace beg end (substring-no-properties str))))
+ (completion--replace beg end str)))
(defun corfu--capf-wrapper (fun &optional prefix trigger)
"Wrapper for `completion-at-point' FUN.