mirror of https://github.com/Hilbis/Hilbish
fix(readline): dont show completions menu if there is only 1 entry (closes #107)
parent
91222f9d74
commit
ae449b89eb
|
@ -163,7 +163,7 @@ func (rl *Instance) getNormalCompletion() {
|
||||||
// escape the completion mode from here directly.
|
// escape the completion mode from here directly.
|
||||||
var items bool
|
var items bool
|
||||||
for _, group := range rl.tcGroups {
|
for _, group := range rl.tcGroups {
|
||||||
if len(group.Suggestions) > 0 {
|
if len(group.Suggestions) > 1 {
|
||||||
items = true
|
items = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue