fix: fix youdao input key calculate mistake (unicode uncode)

This commit is contained in:
JuanZoran
2023-03-16 16:07:44 +08:00
parent 020876d8c4
commit 870be41bee
7 changed files with 91 additions and 91 deletions

View File

@ -13,7 +13,6 @@ end
---@type table<string, fun(hover:TransHover, result: TransResult)>
local default = {
str = function(hover, result)
-- TODO :
hover.buffer:setline(it(result.str, 'TransWord'))
end,
translation = function(hover, result)
@ -148,7 +147,7 @@ strategy.offline = {
---@class TransHover
---@field load fun(hover: TransHover, result: TransResult, name: string, order: string[])
return function(hover, result, name, order)
order = order or { 'str', 'translation', 'definition' }
order = order or hover.opts.order.default
local method = strategy[name]