code cleanup

This commit is contained in:
Mikayla Fischler
2023-06-03 17:31:06 -04:00
parent 24a7275543
commit b4932b33b6
6 changed files with 16 additions and 17 deletions

View File

@@ -44,8 +44,9 @@ local function data(args)
e.window.setCursorPos(1, 1)
e.window.write(args.label)
local label_len = string.len(args.label)
local data_start = 1
local value_color = e.fg_bg.fgd
local label_len = string.len(args.label)
local data_start = 1
local clear_width = args.width
if label_len > 0 then
@@ -53,8 +54,6 @@ local function data(args)
clear_width = args.width - (label_len + 1)
end
local value_color = e.fg_bg.fgd
-- on state change
---@param value any new value
function e.on_update(value)