emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct a670316 2/3: Apply candidate highlight only when ne


From: ELPA Syncer
Subject: [elpa] externals/mct a670316 2/3: Apply candidate highlight only when necessary
Date: Tue, 30 Nov 2021 03:57:20 -0500 (EST)

branch: externals/mct
commit a670316950f75c474a5ea2c4113b2f46d0d32c70
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]