fix: out of range of u16

This commit is contained in:
sxyazi 2023-10-12 08:15:09 +08:00
parent 1a2798eb15
commit cdd20f8510
No known key found for this signature in database

View File

@ -25,7 +25,7 @@ function Folder:markers(area, markers)
local append = function(last)
local p = ui.Paragraph(
ui.Rect {
x = area.x - 1,
x = math.max(1, area.x) - 1,
y = area.y + last[1] - 1,
w = 1,
h = 1 + last[2] - last[1],