chore: bump Yazi version to 25.12.29

This commit is contained in:
sxyazi
2025-12-30 07:58:34 +08:00
parent 1612f00cf1
commit 517619af12
6 changed files with 13 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
--- @since 25.5.31
--- @since 25.12.29
local toggle_ui = ya.sync(function(self)
if self.children then
@@ -7,12 +7,7 @@ local toggle_ui = ya.sync(function(self)
else
self.children = Modal:children_add(self, 10)
end
-- TODO: remove this
if ui.render then
ui.render()
else
ya.render()
end
ui.render()
end)
local subscribe = ya.sync(function(self)
@@ -23,12 +18,7 @@ end)
local update_partitions = ya.sync(function(self, partitions)
self.partitions = partitions
self.cursor = math.max(0, math.min(self.cursor or 0, #self.partitions - 1))
-- TODO: remove this
if ui.render then
ui.render()
else
ya.render()
end
ui.render()
end)
local active_partition = ya.sync(function(self) return self.partitions[self.cursor + 1] end)
@@ -39,12 +29,7 @@ local update_cursor = ya.sync(function(self, cursor)
else
self.cursor = ya.clamp(0, self.cursor + cursor, #self.partitions - 1)
end
-- TODO: remove this
if ui.render then
ui.render()
else
ya.render()
end
ui.render()
end)
local M = {