Skip to content

Commit

Permalink
transient-format: Only highlight infix if minibuffer is used
Browse files Browse the repository at this point in the history
Without this, toggling an *option* off (i.e., without using the
minibuffer) causes the use of `transient-active-infix' to stick
around.
  • Loading branch information
tarsius committed Nov 26, 2023
1 parent 71d16d8 commit af6eb31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit af6eb31

Please sign in to comment.