diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-01-20 20:44:55 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-01-20 20:44:55 +0100 |
| commit | f51c144a47a6a865e6453afb82c3c12a31fa4b0b (patch) | |
| tree | ca978398e7fc8b44b10fbc65f799a9bcb89dc641 | |
| parent | f582a9bc4d3ff839a95c8b68d12fefb6397be4ec (diff) | |
transient--make-predicate-map: Fix detecting outer prefix
Since [1: 5f2cfc9f] we try to detect whether there is an outer
prefix, that non-transient suffixes could return to, by checking
if `transient--current-prefix' is non-nil. That works then the
prefix is created, but that variable is also always non-nil after
a transient suffix is invoked. Instead check if `transient--stack'
is non-nil.
1: 2023-11-29 5f2cfc9f73e756fb337df70909fcd3d0bce56911
transient--make-predicate-map: Only return if there is a parent
| -rw-r--r-- | lisp/transient.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/transient.el b/lisp/transient.el index ff17c51..80fc417 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -1831,7 +1831,7 @@ of the corresponding object." (defun transient--make-predicate-map () (let* ((default (transient--resolve-pre-command (oref transient--prefix transient-suffix))) - (return (and transient-current-prefix (eq default t))) + (return (and transient--stack (eq default t))) (map (make-sparse-keymap))) (set-keymap-parent map transient-predicate-map) (when (or (and (slot-boundp transient--prefix 'transient-switch-frame) |
