diff --git a/yasnippet.el b/yasnippet.el index 4f06a48..adfe88a 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -3402,6 +3402,7 @@ Only clears the field if it hasn't been modified and it point it at field start. This hook doesn't do anything if an undo is in progress." (unless (or yas--inhibit-overlay-hooks + (not (overlayp yas--active-field-overlay)) ; Avoid Emacs bug #21824. (yas--undo-in-progress)) (let* ((field (overlay-get overlay 'yas--field)) (snippet (overlay-get yas--active-field-overlay 'yas--snippet)))