Skip to content

Commit

Permalink
Re-initialize suffixes when returning to :refresh-suffixes prefix
Browse files Browse the repository at this point in the history
Closes #327.
  • Loading branch information
tarsius committed Nov 13, 2024
1 parent d90d65b commit 179545a
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 @@ -2135,7 +2135,8 @@ value. Otherwise return CHILDREN as is."
(setq transient--prefix (transient--init-prefix name params))
(setq name (oref transient--prefix command)))
(setq transient--refreshp (oref transient--prefix refresh-suffixes))
(setq transient--layout (or layout (transient--init-suffixes name)))
(setq transient--layout (or (and (not transient--refreshp) layout)
(transient--init-suffixes name)))
(setq transient--suffixes (transient--flatten-suffixes transient--layout)))

(defun transient--init-prefix (name &optional params)
Expand Down

0 comments on commit 179545a

Please sign in to comment.