mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
cmd/geth Autocompletion bugfix which let the console crash
This commit is contained in:
@@ -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, ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user