perf(ui): avoid ui_flush() work in headless mode

This commit is contained in:
bfredl
2022-06-25 19:00:35 +02:00
parent 45bee1dafd
commit be3d2f5125
2 changed files with 11 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ describe('UI receives option updates', function()
end)
it('on attach #11372', function()
clear()
clear{args_rm={'--headless'}}
local evs = {}
screen = Screen.new(20,5)
-- Override mouse_on/mouse_off handlers.
@@ -88,6 +88,13 @@ describe('UI receives option updates', function()
eq(expected, screen.options)
end)
command("set pumblend=50")
expected.pumblend = 50
screen:expect(function()
eq(expected, screen.options)
end)
-- check handling of out-of-bounds value
command("set pumblend=-1")
expected.pumblend = 0
screen:expect(function()