fix: v4 changes in the preset mime plugin, closes #33

This commit is contained in:
sxyazi
2024-11-20 23:22:26 +08:00
parent 4a6edc3349
commit ab7068ef75
2 changed files with 4 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ local cands = ya.sync(function(st)
return t
end)
local function entry(_, args)
local function entry(self, args)
assert(args[1] == "add" or args[1] == "remove", "Invalid action")
ya.manager_emit("escape", { visual = true })
@@ -94,7 +94,7 @@ local function entry(_, args)
local status = Command("tag"):args(t):status()
if status.success then
fetch { files = files }
fetch(self, { files = files })
end
end