Commit 6fe46cc7 authored by Péter Szilágyi's avatar Péter Szilágyi

Merge pull request #1774 from bas-vk/console-crash

cmd/geth Autocompletion bugfix which let the console crash
parents e2d7c1a5 f6912135
...@@ -121,7 +121,7 @@ func keywordCompleter(line string) []string { ...@@ -121,7 +121,7 @@ func keywordCompleter(line string) []string {
} }
func apiWordCompleter(line string, pos int) (head string, completions []string, tail 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, "" 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