From 1d0c9a0281b6399ab463fc62cf083457ea36d2f1 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 9 Jan 2026 12:17:56 +0800 Subject: [PATCH] Revert unrelated changes --- yazi-plugin/preset/plugins/archive.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yazi-plugin/preset/plugins/archive.lua b/yazi-plugin/preset/plugins/archive.lua index eea6d827..670fad6f 100644 --- a/yazi-plugin/preset/plugins/archive.lua +++ b/yazi-plugin/preset/plugins/archive.lua @@ -9,13 +9,12 @@ function M:peek(job) files, bound, err = self.list_compressed_tar({ "-p", tostring(job.file.path) }, job.skip, limit) end - local limit = job.area.h if err then return ya.preview_widget(job, err) elseif job.skip > 0 and bound < job.skip + limit then return ya.emit("peek", { math.max(0, bound - limit), only_if = job.file.url, upper_bound = true }) elseif #files == 0 then - files = { { path = job.file.url.stem, size = 0, attr = "" } } + files = { { path = job.file.url.stem, size = 0, packed_size = 0, attr = "" } } end M.prepare_tree(files) @@ -40,7 +39,7 @@ function M:peek(job) end left[#left] = ui.Line { - ui.Span(string.rep(" │", f.depth)), + string.rep(" │", f.depth), left[#left], ui.truncate(f.display_name, { rtl = true,