diff --git a/yazi-plugin/preset/plugins/pdf.lua b/yazi-plugin/preset/plugins/pdf.lua index 658d78e5..b645cf5b 100644 --- a/yazi-plugin/preset/plugins/pdf.lua +++ b/yazi-plugin/preset/plugins/pdf.lua @@ -51,6 +51,7 @@ function M:preload(job) local pages = tonumber(output.stderr:match("the last page %((%d+)%)")) or 0 if job.skip > 0 and pages > 0 then ya.emit("peek", { math.max(0, pages - 1), only_if = job.file.url, upper_bound = true }) + return false end return true, Err("Failed to convert PDF to image, stderr: %s", output.stderr) end