mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
refactor(api): make cstr_as_string accept "const char*"
In the context a String inside an Object/Dictionary etc is consumed, it is considered to be read-only.
This commit is contained in:
@@ -135,7 +135,7 @@ void ui_send_all_hls(UI *ui)
|
||||
api_free_array(inspect);
|
||||
}
|
||||
for (size_t hlf = 0; hlf < HLF_COUNT; hlf++) {
|
||||
remote_ui_hl_group_set(ui, cstr_as_string((char *)hlf_names[hlf]),
|
||||
remote_ui_hl_group_set(ui, cstr_as_string(hlf_names[hlf]),
|
||||
highlight_attr[hlf]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user