mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 00:35:36 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user