fix: fix wrap height caculate mistake

This commit is contained in:
JuanZoran
2023-01-21 14:02:38 +08:00
parent 526ca19fbf
commit e058985bf3
5 changed files with 14 additions and 23 deletions

View File

@ -283,15 +283,16 @@ return function(word)
end
else
process.failed()
m_window:set_width(m_content.lines[1]:width())
end
m_window:draw(true)
m_window:draw()
m_window.height = m_content:actual_height(true)
m_window:open(function()
m_window:set('wrap', true)
end)
-- Auto Close
cmd_id = api.nvim_create_autocmd(
hover.auto_close_events, {