branch: externals/vertico commit 5f12a6f87703ddb32ca85d5f2d0a8ce61d25d6d8 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
vertico--exhibit: Disable undo list (Fix #55) --- vertico.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vertico.el b/vertico.el index 3f02682..ea52471 100644 --- a/vertico.el +++ b/vertico.el @@ -470,7 +470,8 @@ (defun vertico--exhibit () "Exhibit completion UI." (vertico--tidy-shadowed-file) - (let* ((pt (max 0 (- (point) (minibuffer-prompt-end)))) + (let* ((buffer-undo-list t) ;; Overlays affect point position and undo list! + (pt (max 0 (- (point) (minibuffer-prompt-end)))) (content (minibuffer-contents-no-properties)) (before (substring content 0 pt)) (after (substring content pt))