From 432e913f4b027d79e9f1d472840322184360cd40 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Sun, 2 Oct 2022 16:45:35 +0200 Subject: [PATCH] [choice] Fix default nowrap value. --- choice.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/choice.lua b/choice.lua index 9806fbe..df17f7f 100644 --- a/choice.lua +++ b/choice.lua @@ -42,7 +42,7 @@ function Choice.new(args) self.color = self.color or core.theme.color self.hovered = false self.choices = self.choices or { "" } - self.nowrap = self.nowrap or #self.choices == 0 + self.nowrap = self.nowrap or #self.choices < 2 self.index = 1 -- by default for i,choice in ipairs(self.choices) do