fix(ui): properly wrap ui elements on small screens. Fixes #92

This commit is contained in:
Folke Lemaitre 2022-12-22 10:45:45 +01:00
parent c0c2e1bd68
commit 3415a61789
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 7 additions and 2 deletions

View file

@ -19,11 +19,12 @@ local Text = require("lazy.view.text")
---@field _details? string
local M = setmetatable({}, { __index = Text })
function M.new(buf, win, padding)
function M.new(buf, win, padding, wrap)
local self = setmetatable({}, { __index = M })
self.buf = buf
self.win = win
self.padding = padding or 0
self.wrap = wrap
return self
end