diff options
author | luukvbaal <31730729+luukvbaal@users.noreply.github.com> | 2022-11-08 00:21:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 07:21:22 +0800 |
commit | 8147d3df284a075f89746f9d5e948b5220c45f0b (patch) | |
tree | b132435018203f9a41dee15af9afcba0634c4526 /test/functional/lua | |
parent | 050b0e30b9d8a073a3b421a6cebd878226249ab6 (diff) | |
download | rneovim-8147d3df284a075f89746f9d5e948b5220c45f0b.tar.gz rneovim-8147d3df284a075f89746f9d5e948b5220c45f0b.tar.bz2 rneovim-8147d3df284a075f89746f9d5e948b5220c45f0b.zip |
vim-patch:9.0.0844: handling 'statusline' errors is spread out (#20992)
Problem: Handling 'statusline' errors is spread out.
Solution: Pass the option name to the lower levels so the option can be
reset there when an error is encountered. (Luuk van Baal,
closes vim/vim#11467)
https://github.com/vim/vim/commit/7b224fdf4a29f115567d4fc8629c1cef92d8444a
Diffstat (limited to 'test/functional/lua')
-rw-r--r-- | test/functional/lua/ffi_spec.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/functional/lua/ffi_spec.lua b/test/functional/lua/ffi_spec.lua index 80c01a2b8c..3969a7a478 100644 --- a/test/functional/lua/ffi_spec.lua +++ b/test/functional/lua/ffi_spec.lua @@ -35,11 +35,12 @@ describe('ffi.cdef', function() int build_stl_str_hl( win_T *wp, - char_u *out, + char *out, size_t outlen, - char_u *fmt, - int use_sandbox, - char_u fillchar, + char *fmt, + char *opt_name, + int opt_scope, + int fillchar, int maxwidth, stl_hlrec_t **hltab, StlClickRecord **tabtab @@ -48,9 +49,10 @@ describe('ffi.cdef', function() return ffi.C.build_stl_str_hl( ffi.C.find_window_by_handle(0, ffi.new('Error')), - ffi.new('char_u[1024]'), + ffi.new('char[1024]'), 1024, - ffi.cast('char_u*', 'StatusLineOfLength20'), + ffi.cast('char*', 'StatusLineOfLength20'), + nil, 0, 0, 0, |