Skip to content

Commit fab1a42

Browse files
authored
Increase max length for EditControl "count" input
10 characters for futureproof (2^31-1 = 10 char)
1 parent cbf1286 commit fab1a42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/ConfigTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ local ConfigTabClass = newClass("ConfigTab", "UndoHandler", "ControlHost", "Cont
168168
self.build.buildFlag = true
169169
end)
170170
elseif varData.type == "count" or varData.type == "integer" or varData.type == "countAllowZero" or varData.type == "float" then
171-
control = new("EditControl", {"TOPLEFT",lastSection,"TOPLEFT"}, {234, 0, 90, 18}, "", nil, (varData.type == "integer" and "^%-%d") or (varData.type == "float" and "^%d.") or "%D", 9, function(buf, placeholder)
171+
control = new("EditControl", {"TOPLEFT",lastSection,"TOPLEFT"}, {234, 0, 90, 18}, "", nil, (varData.type == "integer" and "^%-%d") or (varData.type == "float" and "^%d.") or "%D", 10, function(buf, placeholder)
172172
if placeholder then
173173
self.configSets[self.activeConfigSetId].placeholder[varData.var] = tonumber(buf)
174174
else

0 commit comments

Comments
 (0)