2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

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

This commit is contained in:
TorchedSammy 2022-03-14 20:17:45 -04:00
parent 91222f9d74
commit ae449b89eb
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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
}
}