branch: externals/kubed
commit 3ef32c036462e9a9d932226e96206e48512e9d0c
Author: Eshel Yaron <m...@eshelyaron.com>
Commit: Eshel Yaron <m...@eshelyaron.com>

    ; (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 ab05e110f1..8fad0ecdd5 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

Reply via email to