diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-25 18:51:55 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-07-18 14:08:44 +0200 |
commit | 45bee1dafd0d4042f3b22928b5cc6021a1772bb7 (patch) | |
tree | 81f421dbba4250db47c0a307654727fa238a5316 /test | |
parent | 67a04fe6cb0f6b0cd3d44ae37b7caddddda198ea (diff) | |
download | rneovim-45bee1dafd0d4042f3b22928b5cc6021a1772bb7.tar.gz rneovim-45bee1dafd0d4042f3b22928b5cc6021a1772bb7.tar.bz2 rneovim-45bee1dafd0d4042f3b22928b5cc6021a1772bb7.zip |
perf(ui): eliminate spurious memory allocations for hl_attr_define event
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/editor/put_spec.lua | 9 | ||||
-rw-r--r-- | test/functional/ui/cursor_spec.lua | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/test/functional/editor/put_spec.lua b/test/functional/editor/put_spec.lua index cc9fce8f67..5050edff5c 100644 --- a/test/functional/editor/put_spec.lua +++ b/test/functional/editor/put_spec.lua @@ -879,9 +879,13 @@ describe('put command', function() ine of words 2]], curbuf_contents()) end) - local function bell_test(actions, should_ring) - local screen = Screen.new() + local screen + setup(function() + screen = Screen.new() screen:attach() + end) + + local function bell_test(actions, should_ring) if should_ring then -- check bell is not set by nvim before the action screen:sleep(50) @@ -899,7 +903,6 @@ describe('put command', function() end end end, unchanged=(not should_ring)} - screen:detach() end it('should not ring the bell with gp at end of line', function() diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua index a1423c98a8..03cd4bfd06 100644 --- a/test/functional/ui/cursor_spec.lua +++ b/test/functional/ui/cursor_spec.lua @@ -215,7 +215,7 @@ describe('ui/cursor', function() m.hl_id = 60 m.attr = {background = Screen.colors.DarkGray} end - if m.id_lm then m.id_lm = 65 end + if m.id_lm then m.id_lm = 61 end end -- Assert the new expectation. |