mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
eval,*: Move get_tv_string to typval.c
Function was renamed and changed to return `const char *`.
This commit is contained in:
@@ -625,7 +625,7 @@ String cstr_as_string(char *str) FUNC_ATTR_PURE
|
||||
if (str == NULL) {
|
||||
return (String) STRING_INIT;
|
||||
}
|
||||
return (String) {.data = str, .size = strlen(str)};
|
||||
return (String) { .data = str, .size = strlen(str) };
|
||||
}
|
||||
|
||||
/// Converts from type Object to a VimL value.
|
||||
|
Reference in New Issue
Block a user