refactor: remove compatibility code for Yazi 0.3

This commit is contained in:
sxyazi
2024-12-23 15:29:59 +08:00
parent f1317106ab
commit c7feb90930
5 changed files with 7 additions and 43 deletions

View File

@@ -1,13 +1,7 @@
local function setup()
local old_layout = Tab.layout
-- TODO: remove this check once v0.4 is released
if Status.redraw then
Status.redraw = function() return {} end
else
Status.render = function() return {} end
end
Status.redraw = function() return {} end
Tab.layout = function(self, ...)
self._area = ui.Rect { x = self._area.x, y = self._area.y, w = self._area.w, h = self._area.h + 1 }
return old_layout(self, ...)