fix: warning message about using deprecated mime fetcher on yazi >= 25.12.29 (#166)
This commit is contained in:
@@ -1112,7 +1112,7 @@ function M.fallback_builtin(job, unknown, state)
|
|||||||
indices[f:hash()] = i
|
indices[f:hash()] = i
|
||||||
end
|
end
|
||||||
|
|
||||||
local result = require("mime"):fetch(ya.dict_merge(job, { files = unknown }))
|
local result = require("mime.local"):fetch(ya.dict_merge(job, { files = unknown }))
|
||||||
for i, f in ipairs(unknown) do
|
for i, f in ipairs(unknown) do
|
||||||
if type(result) == "table" then
|
if type(result) == "table" then
|
||||||
state[indices[f:hash()]] = result[i]
|
state[indices[f:hash()]] = result[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user