fix: fix setline mistake

This commit is contained in:
JuanZoran
2023-03-15 00:18:31 +08:00
parent f47abd1691
commit baf30a3db1
4 changed files with 24 additions and 23 deletions

View File

@ -1,5 +1,6 @@
local Trans = require('Trans')
-- FIXME :Adjust Window Size
---@class TransHover: TransFrontend
---@field ns integer @namespace for hover window
@ -117,7 +118,6 @@ function M:wait(tbl, name, timeout)
pause(interval)
end
-- TODO : End waitting animation
buffer[1] = ''
end

View File

@ -14,7 +14,7 @@ local interval = (' '):rep(4)
local strategy = {
title = function(hover, title)
if type(title) == 'string' then
hover.buffer:setline(it(title, 'TransTitle'))
hover.buffer:setline(it(title, 'TransWord'))
return
end