From: Eshel Yaron Date: Sat, 27 Jul 2024 16:20:22 +0000 (+0200) Subject: (kubed-kubectl-command): Fix handling of transient scope X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5cfbc443648440dc7212b166f17db9d080e0d0f;p=emacs.git (kubed-kubectl-command): Fix handling of transient scope --- diff --git a/lisp/net/kubed.el b/lisp/net/kubed.el index a60d7fd4e4b..70172d730a9 100644 --- a/lisp/net/kubed.el +++ b/lisp/net/kubed.el @@ -1834,12 +1834,10 @@ Interactively, prompt for COMMAND with completion for `kubectl' arguments." "Command: " (concat kubed-kubectl-program " " - (when-let ((args (kubed-transient-args))) - (concat (string-join - (append (and (fboundp 'transient-scope) (transient-scope)) - args) - " ") - " "))) + (let ((args (kubed-transient-args)) + (scope (and (fboundp 'transient-scope) (transient-scope)))) + (when (or args scope) + (concat (string-join (append scope args) " ") " ")))) 'kubed-kubectl-command-history))) (shell-command command))