From d5cfbc443648440dc7212b166f17db9d080e0d0f Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 27 Jul 2024 18:20:22 +0200 Subject: [PATCH] (kubed-kubectl-command): Fix handling of transient scope --- lisp/net/kubed.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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)) -- 2.39.5