mirror of
https://github.com/neovim/neovim.git
synced 2025-12-01 06:23:01 +00:00
refactor: reduce number of unique char casts (#15995)
This commit is contained in:
@@ -195,7 +195,7 @@ Dictionary nvim_get_hl_by_id(Integer hl_id, Boolean rgb, Error *err)
|
||||
Integer nvim_get_hl_id_by_name(String name)
|
||||
FUNC_API_SINCE(7)
|
||||
{
|
||||
return syn_check_group((const char_u *)name.data, (int)name.size);
|
||||
return syn_check_group(name.data, (int)name.size);
|
||||
}
|
||||
|
||||
Dictionary nvim__get_hl_defs(Integer ns_id, Error *err)
|
||||
@@ -227,7 +227,7 @@ Dictionary nvim__get_hl_defs(Integer ns_id, Error *err)
|
||||
void nvim_set_hl(Integer ns_id, String name, Dictionary val, Error *err)
|
||||
FUNC_API_SINCE(7)
|
||||
{
|
||||
int hl_id = syn_check_group( (char_u *)(name.data), (int)name.size);
|
||||
int hl_id = syn_check_group(name.data, (int)name.size);
|
||||
int link_id = -1;
|
||||
|
||||
HlAttrs attrs = dict2hlattrs(val, true, &link_id, err);
|
||||
|
||||
Reference in New Issue
Block a user