mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-05 10:55:02 +00:00
Merge pull request #1774 from bas-vk/console-crash
cmd/geth Autocompletion bugfix which let the console crash
This commit is contained in:
commit
6fe46cc743
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue