From 3ef32c036462e9a9d932226e96206e48512e9d0c Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 14 Aug 2024 14:45:46 +0200 Subject: [PATCH] ; (kubed-display-resource): Only ask for namespace when needed. --- kubed.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubed.el b/kubed.el index ab05e11..8fad0ec 100644 --- a/kubed.el +++ b/kubed.el @@ -251,7 +251,7 @@ prompt for CONTEXT as well." (unless type (setq type (kubed-read-resource-type "Type of resource to display" nil context))) - (unless namespace + (when (and (kubed-namespaced-p type context) (null namespace)) (setq namespace (let ((cur (kubed-local-namespace context))) (if current-prefix-arg -- 2.39.2