From 88394a4cc2735c0913a4fd739264beb9e66bff60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cm=C3=BCt=20=C3=96zalp?= <54961032+uozalp@users.noreply.github.com> Date: Sun, 18 Aug 2024 17:23:56 +0200 Subject: [PATCH] Add leading space to Kubernetes context suggestions (#2791) --- internal/view/cmd/helpers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/view/cmd/helpers.go b/internal/view/cmd/helpers.go index 9ceec0da..0068dcbe 100644 --- a/internal/view/cmd/helpers.go +++ b/internal/view/cmd/helpers.go @@ -113,6 +113,10 @@ func completeCtx(s string, cc []string) []string { var suggests []string for _, ctxName := range cc { if suggest, ok := ShouldAddSuggest(s, ctxName); ok { + if len(s) == 0 { + suggests = append(suggests, " "+suggest) + continue + } suggests = append(suggests, suggest) } }