summaryrefslogtreecommitdiffstats
path: root/scripts/generate_cheatsheet.go
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generate_cheatsheet.go')
-rw-r--r--scripts/generate_cheatsheet.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go
index c5afdf5e9..1cfa3aab6 100644
--- a/scripts/generate_cheatsheet.go
+++ b/scripts/generate_cheatsheet.go
@@ -83,9 +83,7 @@ func getBindingSections(mApp *app.App) []*bindingSection {
if len(binding.Contexts) == 0 {
contexts = append(contexts, "")
} else {
- for _, context := range binding.Contexts {
- contexts = append(contexts, context)
- }
+ contexts = append(contexts, binding.Contexts...)
}
for _, context := range contexts {