Skip to content

Commit

Permalink
fix: out of range of u16
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 12, 2023
1 parent 1a2798e commit cdd20f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/preset/components/folder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit cdd20f8

Please sign in to comment.