diff options
author | Abdelhakeem Osama <abdelhakeem.osama@hotmail.com> | 2019-08-25 10:11:22 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-25 09:11:22 +0200 |
commit | 2e621553c089ca6b7de5123a9c63a7a54ee06c20 (patch) | |
tree | b445ce37ef995c7ecb6a785cb1de20d30d1f85a4 /test/functional/api/vim_spec.lua | |
parent | 34e416667378a610943f614b97da9b865d622806 (diff) | |
download | rneovim-2e621553c089ca6b7de5123a9c63a7a54ee06c20.tar.gz rneovim-2e621553c089ca6b7de5123a9c63a7a54ee06c20.tar.bz2 rneovim-2e621553c089ca6b7de5123a9c63a7a54ee06c20.zip |
teardown: fix win_free_all() heap-use-after-free #10839
Fixes #10838
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index cd45914552..0cd81619c1 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1510,5 +1510,10 @@ describe('API', function() | ]]) end) + + it('does not cause heap-use-after-free on exit while setting options', function() + command('au OptionSet * q') + command('silent! call nvim_create_buf(0, 1)') + end) end) end) |