aboutsummaryrefslogtreecommitdiff
path: root/cmd/repl/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/repl/main.go')
-rw-r--r--cmd/repl/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/repl/main.go b/cmd/repl/main.go
index 098452d..b1bb413 100644
--- a/cmd/repl/main.go
+++ b/cmd/repl/main.go
@@ -48,8 +48,7 @@ func complete(L *ell.Ell, line string, pos int) (
head, line = line[:lastSpace+1], line[lastSpace+1:]
}
- for _, v := range L.Globals {
- name := v.List[0].String
+ for name := range L.Globals {
if strings.HasPrefix(strings.ToLower(name), line) {
completions = append(completions, name)
}