Skip to content

Commit

Permalink
Strip text properties from the target before insertion
Browse files Browse the repository at this point in the history
If the action reads the input with completing-read, which is a very
common case, text properties are stripped anyway. This change just
makes the lack of text properties uniform, indepedent of the method
the action uses to read its input.
  • Loading branch information
oantolin committed Feb 8, 2021
1 parent a0c7850 commit bf6158c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ minibuffer before executing the action."
#'ignore
(lambda ()
(delete-minibuffer-contents)
(insert target)
(insert (substring-no-properties target))
(let ((embark-setup-hook setup-hook))
(run-hooks 'embark-setup-hook))
(unless allow-edit
Expand Down

0 comments on commit bf6158c

Please sign in to comment.