fix status bar

This commit is contained in:
Jeremy Penner 2021-04-19 23:56:50 -04:00
parent 415f179bd1
commit c77804a1f5

View file

@ -57,7 +57,7 @@ local function draw_items(self, items, x, y, draw_fn)
local color = style.text
for _, item in ipairs(items) do
if type(item) == "userdata" then
if type(item) == "userdata" or (type(item) == "table" and item.get_width) then
font = item
elseif type(item) == "table" then
color = item