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

cmd/geth Autocompletion bugfix which let the console crash
pull/1624/merge
Péter Szilágyi 9 years ago
commit 6fe46cc743
  1. 2
      cmd/geth/js.go

@ -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, ""
}

Loading…
Cancel
Save