Skip to content

Commit

Permalink
Strip text properties in embark-insert
Browse files Browse the repository at this point in the history
This fixes a behavior change inadvertently introduced when
embark-insert became a multitarget action.
  • Loading branch information
oantolin committed Mar 20, 2024
1 parent 194c042 commit 30910d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -3651,7 +3651,8 @@ its own."
(if multiline (maybe-newline) (maybe-space)))
(ins-string ()
(let ((start (point)))
(insert (string-join strings separator))
(insert
(mapconcat #'substring-no-properties strings separator))
(save-excursion (goto-char start) (maybe-whitespace))
(when (looking-back "\n" 1) (delete-char -1))
(save-excursion (maybe-whitespace)))))
Expand Down

0 comments on commit 30910d4

Please sign in to comment.