From cdd20f851005d1e379804ad90c3669f4d97e36d8 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 12 Oct 2023 08:15:09 +0800 Subject: [PATCH] fix: out of range of u16 --- plugin/preset/components/folder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/preset/components/folder.lua b/plugin/preset/components/folder.lua index 49167ceaf..42606bb30 100644 --- a/plugin/preset/components/folder.lua +++ b/plugin/preset/components/folder.lua @@ -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],