From a61f3bdc3f906114cb9d9135adbdcd65397dc487 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Tue, 25 Jul 2023 12:38:55 -0400 Subject: [PATCH] fix(choose): --no-limit when 1 option available should still allow selection --- choose/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/choose/command.go b/choose/command.go index 895f22e1d..bd7db4129 100644 --- a/choose/command.go +++ b/choose/command.go @@ -46,7 +46,7 @@ func (o Options) Run() error { // If we've set no limit then we can simply select as many options as there // are so let's set the limit to the number of options. if o.NoLimit { - o.Limit = len(o.Options) + o.Limit = len(o.Options) + 1 } if len(o.Selected) > o.Limit {