fix(full-border): address max-preview compatibility

This commit is contained in:
lpnh
2024-06-25 13:45:07 -03:00
parent a882e3828c
commit 4f35f77b82

View File

@@ -4,6 +4,13 @@ local function setup()
local bar = function(c, x, y)
x, y = math.max(0, x), math.max(0, y)
if x == 0 and y == 1 then
c = ""
elseif x == 0 and y == 50 then
c = ""
end
return ui.Bar(ui.Rect { x = x, y = y, w = ya.clamp(0, area.w - x, 1), h = math.min(1, area.h) }, ui.Bar.TOP)
:symbol(c)
end