mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
cmd/geth Autocompletion bugfix which let the console crash
This commit is contained in:
parent
e2d7c1a523
commit
f69121357d
@ -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…
Reference in New Issue
Block a user