From 265438b16155e899d82a869aebca16105665c998 Mon Sep 17 00:00:00 2001 From: Adam Kruszewski Date: Mon, 14 Aug 2023 17:36:28 +0200 Subject: [PATCH] Add workaround for dabbrev backend completions --- corfu-candidate-overlay.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/corfu-candidate-overlay.el b/corfu-candidate-overlay.el index 70f6fb9..e2ef206 100644 --- a/corfu-candidate-overlay.el +++ b/corfu-candidate-overlay.el @@ -351,7 +351,9 @@ the end of word." ;; to have templates expanded as well. (corfu-insert) (completion-at-point) - (corfu-complete) + ;; TODO: Not sure why it sometimes breaks with dabbrev backend. Need to investigate. + (ignore-errors + (corfu-complete)) (corfu-quit)))) ;;;###autoload