Skip to content

Commit

Permalink
transient-toggle-level-limit: Use transient-prefix-object
Browse files Browse the repository at this point in the history
Since this is the only use of `transient-define-suffix' in
"transient.el" itself, it might be looked at for inspiration, so use
`transient-prefix-object', instead of `transient--prefix', which in
this case would be equivalent, but is intended for internal use only.
Hopefully this helps avoiding some confusion.
  • Loading branch information
tarsius committed Dec 1, 2023
1 parent bccec99 commit e02dfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -2877,7 +2877,7 @@ transient is active."
(transient--all-levels-p
(format "Hide suffix %s"
(propertize
(format "levels > %s" (oref transient--prefix level))
(format "levels > %s" (oref (transient-prefix-object) level))
'face 'transient-higher-level)))
("Show all suffix levels")))
:inapt-if (lambda () (= transient-default-level transient--max-level))
Expand Down

0 comments on commit e02dfa6

Please sign in to comment.