Skip to content

Commit

Permalink
transient-scope: Deal with PREFIXES beginning with non-existent prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 3, 2024
1 parent 645f1b2 commit c9d46a4
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 @@ -3814,7 +3814,8 @@ If no prefix matches, return nil."
(and-let* ((obj transient--prefix))
(and (memq (oref obj command) prefixes) obj)))))
(oref obj scope)
(oref (transient--init-prefix (car prefixes)) scope)))
(and (get (car prefixes) 'transient--prefix)
(oref (transient--init-prefix (car prefixes)) scope))))
(and-let* ((obj (transient-prefix-object)))
(oref obj scope))))

Expand Down

0 comments on commit c9d46a4

Please sign in to comment.