We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42aa105 commit 8d4e96aCopy full SHA for 8d4e96a
1 file changed
Basalt/objects/Textfield.lua
@@ -137,6 +137,7 @@ return function(name, basalt)
137
138
local function updateColors(self, l)
139
l = l or self:getTextYPosition()
140
+ if(l>#lines)then return end
141
local fgLine = tHex[self:getForeground()]:rep(fgLines[l]:len())
142
local bgLine = tHex[self:getBackground()]:rep(bgLines[l]:len())
143
for k,v in pairs(rules)do
@@ -789,4 +790,4 @@ return function(name, basalt)
789
790
791
object.__index = object
792
return setmetatable(object, base)
-end
793
+end
0 commit comments