diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-11 13:10:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 13:10:26 +0800 |
commit | fdaf6bc5573f578d100321dfc084d513884fd73a (patch) | |
tree | e6139f8cf27e8bf40bf2d590e6b27a3d82e56612 /test/functional/vimscript/ctx_functions_spec.lua | |
parent | e9b9a86cd5a555943b87f0ba40c4527561c3c124 (diff) | |
download | rneovim-fdaf6bc5573f578d100321dfc084d513884fd73a.tar.gz rneovim-fdaf6bc5573f578d100321dfc084d513884fd73a.tar.bz2 rneovim-fdaf6bc5573f578d100321dfc084d513884fd73a.zip |
fix(context): don't leak memory on multiple invalid objects (#25979)
Diffstat (limited to 'test/functional/vimscript/ctx_functions_spec.lua')
-rw-r--r-- | test/functional/vimscript/ctx_functions_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/vimscript/ctx_functions_spec.lua b/test/functional/vimscript/ctx_functions_spec.lua index 66a8ec3550..17607f0794 100644 --- a/test/functional/vimscript/ctx_functions_spec.lua +++ b/test/functional/vimscript/ctx_functions_spec.lua @@ -378,7 +378,7 @@ describe('context functions', function() it('errors when context dictionary is invalid', function() call('ctxpush') eq('Vim:E474: Failed to convert list to msgpack string buffer', - pcall_err(call, 'ctxset', { regs = { {} } })) + pcall_err(call, 'ctxset', { regs = { {} }, jumps = { {} } })) end) it('sets context dictionary at index in context stack', function() |