aboutsummaryrefslogtreecommitdiffstats
path: root/jsre/completion.go
diff options
context:
space:
mode:
Diffstat (limited to 'jsre/completion.go')
-rw-r--r--jsre/completion.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/jsre/completion.go b/jsre/completion.go
index e84a5b75c..11e209b69 100644
--- a/jsre/completion.go
+++ b/jsre/completion.go
@@ -27,7 +27,9 @@ import (
// evaluated, callers need to make sure that evaluating line does not have side effects.
func (jsre *JSRE) CompleteKeywords(line string) []string {
var results []string
- jsre.do(func(vm *otto.Otto) { results = getCompletions(vm, line) })
+ jsre.Do(func(vm *otto.Otto) {
+ results = getCompletions(vm, line)
+ })
return results
}