mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-24 09:12:43 +03:00
fix: out of range of u16
This commit is contained in:
parent
1a2798eb15
commit
cdd20f8510
@ -25,7 +25,7 @@ function Folder:markers(area, markers)
|
|||||||
local append = function(last)
|
local append = function(last)
|
||||||
local p = ui.Paragraph(
|
local p = ui.Paragraph(
|
||||||
ui.Rect {
|
ui.Rect {
|
||||||
x = area.x - 1,
|
x = math.max(1, area.x) - 1,
|
||||||
y = area.y + last[1] - 1,
|
y = area.y + last[1] - 1,
|
||||||
w = 1,
|
w = 1,
|
||||||
h = 1 + last[2] - last[1],
|
h = 1 + last[2] - last[1],
|
||||||
|
Loading…
Reference in New Issue
Block a user