mirror of
https://codeberg.org/1414codeforge/yui.git
synced 2025-06-05 22:19:11 +02:00
[choice] Fix default nowrap value.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user