fix(ui-ext): send title to newly-attached UI

(cherry picked from commit 43d66c0ebb)
This commit is contained in:
zeertzjq
2023-05-11 10:48:48 +08:00
committed by github-actions[bot]
parent 624c25a70a
commit 86a1e79ee2
4 changed files with 14 additions and 5 deletions

View File

@@ -117,6 +117,12 @@ local function screen_tests(linegrid)
screen:expect(function()
eq(expected, screen.title)
end)
screen:detach()
screen.title = nil
screen:attach()
screen:expect(function()
eq(expected, screen.title)
end)
end)
end)
@@ -128,6 +134,12 @@ local function screen_tests(linegrid)
screen:expect(function()
eq(expected, screen.icon)
end)
screen:detach()
screen.icon = nil
screen:attach()
screen:expect(function()
eq(expected, screen.icon)
end)
end)
end)