Update Textfield.lua

Small fix
This commit is contained in:
Robert Jelic
2023-09-22 06:53:18 +02:00
committed by GitHub
parent 42aa1059cf
commit 8d4e96a128

View File

@@ -137,6 +137,7 @@ return function(name, basalt)
local function updateColors(self, l)
l = l or self:getTextYPosition()
if(l>#lines)then return end
local fgLine = tHex[self:getForeground()]:rep(fgLines[l]:len())
local bgLine = tHex[self:getBackground()]:rep(bgLines[l]:len())
for k,v in pairs(rules)do
@@ -789,4 +790,4 @@ return function(name, basalt)
object.__index = object
return setmetatable(object, base)
end
end