From f4af7f901f06c7e8837211e628387c9efad434b5 Mon Sep 17 00:00:00 2001 From: Adam Kruszewski Date: Tue, 4 Jul 2023 15:18:05 +0200 Subject: [PATCH] Make insert function to use corfu's functions and update overlay --- corfu-candidate-overlay.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/corfu-candidate-overlay.el b/corfu-candidate-overlay.el index 1549328..b060444 100644 --- a/corfu-candidate-overlay.el +++ b/corfu-candidate-overlay.el @@ -342,8 +342,9 @@ the end of word." (and corfu-candidate-overlay--overlay (overlayp corfu-candidate-overlay--overlay) (corfu-candidate-overlay-at-word-boundary-p)) - - (insert (corfu-candidate-overlay--get-overlay-property 'corfu-candidate)))) + (corfu-candidate-overlay--show) + (corfu-insert) + (corfu-quit))) ;;;###autoload (define-minor-mode corfu-candidate-overlay-mode