branch: elpa/evil-iedit-state commit 2d252e199ae72c9ce889b4cc176b9d118c8b5b00 Author: Miciah <miciah.mast...@gmail.com> Commit: Sylvain Benner <sylvain.ben...@gmail.com>
Override yank handlers when pasting The pasted text may specify a yank handler, e.g., evil-yank-line-handler, that inserts the text outside of the current overlay. It is necessary to override any such yank handler in order to ensure that the text replaces the current overlay and gets propagated to the other overlays. * evil-iedit-state.el (evil-iedit-state/paste-replace): Specify insert-for-yank as the yank handler when calling evil-paste-before. --- evil-iedit-state.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evil-iedit-state.el b/evil-iedit-state.el index 9c16185dfe..8770063484 100644 --- a/evil-iedit-state.el +++ b/evil-iedit-state.el @@ -152,7 +152,7 @@ If INTERACTIVE is non-nil then COMMAND is called interactively." "Replace the selection with the yanked text." (interactive "P") (when kill-ring (iedit-delete-occurrences)) - (evil-paste-before count)) + (evil-paste-before count nil '(#'insert-as-yank))) ;; expand-region integration, add an "e" command ;;;###autoload