branch: externals/mct commit a670316950f75c474a5ea2c4113b2f46d0d32c70 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Apply candidate highlight only when necessary This is a follow-up to commit a3e43e2. It pertains to issue 10: <https://gitlab.com/protesilaos/mct/-/issues/10>. --- mct.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mct.el b/mct.el index 59dec7f..4c9e8d2 100644 --- a/mct.el +++ b/mct.el @@ -963,7 +963,8 @@ region.") (defun mct--completions-highlighting () "Highlight the current completion in the Completions' buffer." - (add-hook 'post-command-hook #'mct--completions-candidate-highlight nil t)) + (unless (mct--no-completion-p) + (add-hook 'post-command-hook #'mct--completions-candidate-highlight nil t))) ;;;;; Keymaps