linter fixes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
2026-02-18 08:16:10 +01:00
parent f589b9bbca
commit 3dd6cfcdcb
18 changed files with 125 additions and 147 deletions

View File

@@ -37,7 +37,6 @@ end
function UI.word_wrap(text, max_chars_per_line)
if text == nil then return {""} end
local lines = {}
for input_line in (text .. "\n"):gmatch("(.-)\n") do
local current_line = ""
local words_in_line = 0
@@ -52,18 +51,15 @@ function UI.word_wrap(text, max_chars_per_line)
current_line = word
end
end
if words_in_line > 0 then
table.insert(lines, current_line)
else
table.insert(lines, "")
end
end
if #lines == 0 then
return {""}
end
return lines
end
@@ -91,7 +87,6 @@ end
function UI.draw_desition_selector(desitions, selected_desition_index)
local bar_height = 16
local bar_y = Config.screen.height - bar_height
rect(0, bar_y, Config.screen.width, bar_height, Config.colors.dark_grey)
if #desitions > 0 then
@@ -121,4 +116,4 @@ function UI.update_desition_selector(desitions, selected_desition_index)
selected_desition_index = Util.safeindex(desitions, selected_desition_index + 1)
end
return selected_desition_index
end
end