setup for luarocks releases

This commit is contained in:
Michael Freno
2025-12-06 14:19:00 -05:00
parent 5088123ad4
commit da69d8bd4f
7 changed files with 230 additions and 19 deletions

View File

@@ -1,3 +1,5 @@
local UTF8 = require((...):match("(.-)[^%.]+$") .. "UTF8")
---@class Renderer
---@field backgroundColor Color
---@field borderColor Color
@@ -463,7 +465,7 @@ end
---@return table Array of {text, startIdx, endIdx}
function Renderer:wrapLine(element, line, maxWidth)
-- UTF-8 support
local utf8 = utf8 or require("utf8")
local utf8 = UTF8
if not element.editable then
return { { text = line, startIdx = 0, endIdx = utf8.len(line) } }