From ae449b89ebafc7cffb98ebfd9b9843777e1e73f3 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:17:45 -0400 Subject: [PATCH] fix(readline): dont show completions menu if there is only 1 entry (closes #107) --- readline/tab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readline/tab.go b/readline/tab.go index 2b67191..7c86386 100644 --- a/readline/tab.go +++ b/readline/tab.go @@ -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 } }