Skip to content

Commit

Permalink
Add leading space to Kubernetes context suggestions (#2791)
Browse files Browse the repository at this point in the history
  • Loading branch information
uozalp authored Aug 18, 2024
1 parent 64e46b6 commit 88394a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/view/cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 88394a4

Please sign in to comment.