branch: externals/mct commit ef5c71be728b75d963f6b8ae03eb1702751552d8 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Guard against void corfu-mode --- mct.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mct.el b/mct.el index 5ebdbda9a4..901436d57c 100644 --- a/mct.el +++ b/mct.el @@ -1122,7 +1122,8 @@ Meant to be added to `after-change-functions'." (when-let (buf (mct--region-current-buffer)) ;; TODO 2022-01-18: Do the same for company-mode, but we need to ;; test it as well. - (when (null (buffer-local-value 'corfu-mode buf)) + (when (and (bound-and-true-p corfu-mode) + (null (buffer-local-value 'corfu-mode buf))) (while-no-input (condition-case nil (save-match-data