Commit f6912135 authored by Bas van Kervel's avatar Bas van Kervel

cmd/geth Autocompletion bugfix which let the console crash

parent e2d7c1a5
......@@ -121,7 +121,7 @@ func keywordCompleter(line string) []string {
}
func apiWordCompleter(line string, pos int) (head string, completions []string, tail string) {
if len(line) == 0 {
if len(line) == 0 || pos == 0 {
return "", nil, ""
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment