branch: elpa/magit
commit c7ba53b4b407bfff3e6657881f384c878a1cbdb1
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    Fix saving value of log and diff transient menus
---
 lisp/magit-diff.el | 2 +-
 lisp/magit-log.el  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index 1e5fbaf1b6b..fb21f933a11 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -897,7 +897,7 @@ and `:slant'."
   (pcase-let* ((obj  (oref obj prototype))
                (mode (or (oref obj major-mode) major-mode))
                (key  (intern (format "magit-diff:%s" mode)))
-               (`(,args ,files) (transient-args obj)))
+               (`(,args ,files) (transient-args (oref obj command))))
     (put mode 'magit-diff-current-arguments args)
     (when save
       (setf (alist-get key transient-values) args)
diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index bc1226b8e75..66c6942ab6c 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -449,7 +449,7 @@ commits before and half after."
   (pcase-let* ((obj  (oref obj prototype))
                (mode (or (oref obj major-mode) major-mode))
                (key  (intern (format "magit-log:%s" mode)))
-               (`(,args ,files) (transient-args obj)))
+               (`(,args ,files) (transient-args (oref obj command))))
     (put mode 'magit-log-current-arguments args)
     (when save
       (setf (alist-get key transient-values) args)

Reply via email to