diff options
Diffstat (limited to 'test/functional/api/deprecated_spec.lua')
-rw-r--r-- | test/functional/api/deprecated_spec.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/api/deprecated_spec.lua b/test/functional/api/deprecated_spec.lua index 2efcfda873..d967bfa743 100644 --- a/test/functional/api/deprecated_spec.lua +++ b/test/functional/api/deprecated_spec.lua @@ -18,4 +18,15 @@ describe('deprecated', function() n.api.nvim_notify('hello world', 4, {}) end) end) + + describe('nvim_*get_option functions', function() + it('does not leak memory', function() + -- String opts caused memory leaks in these functions in Github#32361 + n.exec_lua([[ + vim.api.nvim_get_option('rtp') + vim.api.nvim_win_get_option(vim.api.nvim_get_current_win(), 'foldmethod') + vim.api.nvim_buf_get_option(0, 'fileformat') + ]]) + end) + end) end) |