branch: externals/transient
commit af6eb3105459a83c9869b0196c5b2d1b827add55
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
transient-format: Only highlight infix if minibuffer is used
Without this, toggling an *option* off (i.e., without using the
minibuffer) causes the use of `transient-active-infix' to stick
around.
---
lisp/transient.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index d33d5d7b75..29fb1c1ac0 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3661,7 +3661,8 @@ When `transient-enable-popup-navigation' is non-nil then
format
as a button."
(let ((str (cl-call-next-method obj)))
(when (and (cl-typep obj 'transient-infix)
- (eq (oref obj command) this-original-command))
+ (eq (oref obj command) this-original-command)
+ current-minibuffer-command)
(setq str (transient--add-face str 'transient-active-infix)))
(when transient--editp
(setq str (concat (let ((level (oref obj level)))