Skip to content

Commit 90987f3

Browse files
committed
Ensure that no text properties leak to the overlay (Fix #533)
1 parent 19cd6aa commit 90987f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corfu.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ the last command must be listed in `corfu-continue-commands'."
839839
(overlay-put corfu--preview-ov 'priority 1000)
840840
(overlay-put corfu--preview-ov 'window (selected-window))
841841
(overlay-put corfu--preview-ov (if (= beg end) 'after-string 'display)
842-
(nth corfu--index corfu--candidates))))
842+
(substring-no-properties (nth corfu--index corfu--candidates)))))
843843

844844
(defun corfu--preview-delete ()
845845
"Delete the preview overlay."

0 commit comments

Comments
 (0)