Make insert function to use corfu's functions and update overlay

This commit is contained in:
Adam Kruszewski 2023-07-04 15:18:05 +02:00
parent 6cdc33aa21
commit f4af7f901f

View file

@ -342,8 +342,9 @@ the end of word."
(and corfu-candidate-overlay--overlay (and corfu-candidate-overlay--overlay
(overlayp corfu-candidate-overlay--overlay) (overlayp corfu-candidate-overlay--overlay)
(corfu-candidate-overlay-at-word-boundary-p)) (corfu-candidate-overlay-at-word-boundary-p))
(corfu-candidate-overlay--show)
(insert (corfu-candidate-overlay--get-overlay-property 'corfu-candidate)))) (corfu-insert)
(corfu-quit)))
;;;###autoload ;;;###autoload
(define-minor-mode corfu-candidate-overlay-mode (define-minor-mode corfu-candidate-overlay-mode