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)

7b224fdf4a
This commit is contained in:
luukvbaal
2022-11-08 00:21:22 +01:00
committed by GitHub
parent 050b0e30b9
commit 8147d3df28
7 changed files with 51 additions and 72 deletions

View File

@@ -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,