mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
refactor: replace char_u with char 24 (#21823)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -698,7 +698,7 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer line, Integer
|
||||
}
|
||||
|
||||
if (opts->sign_text.type == kObjectTypeString) {
|
||||
if (!init_sign_text((char **)&decor.sign_text,
|
||||
if (!init_sign_text(&decor.sign_text,
|
||||
opts->sign_text.data.string.data)) {
|
||||
api_set_error(err, kErrorTypeValidation, "sign_text is not a valid value");
|
||||
goto error;
|
||||
|
@@ -358,7 +358,7 @@ bool object_to_vim(Object obj, typval_T *tv, Error *err)
|
||||
}
|
||||
|
||||
case kObjectTypeLuaRef: {
|
||||
char *name = (char *)register_luafunc(api_new_luaref(obj.data.luaref));
|
||||
char *name = register_luafunc(api_new_luaref(obj.data.luaref));
|
||||
tv->v_type = VAR_FUNC;
|
||||
tv->vval.v_string = xstrdup(name);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user