fix(readline): dont show completions menu if there is only 1 entry (closes #107)

windows-fixes
TorchedSammy 2022-03-14 20:17:45 -04:00
parent 91222f9d74
commit ae449b89eb
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ func (rl *Instance) getNormalCompletion() {
// escape the completion mode from here directly.
var items bool
for _, group := range rl.tcGroups {
if len(group.Suggestions) > 0 {
if len(group.Suggestions) > 1 {
items = true
}
}