mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
api: always return empty string as api type String
This commit is contained in:

committed by
Justin M. Keyes

parent
f56d1dc838
commit
f4f0f646c3
@@ -644,10 +644,8 @@ static Object vim_to_object_rec(typval_T *obj, PMap(ptr_t) *lookup)
|
||||
|
||||
switch (obj->v_type) {
|
||||
case VAR_STRING:
|
||||
if (obj->vval.v_string != NULL) {
|
||||
rv.type = kObjectTypeString;
|
||||
rv.data.string = cstr_to_string((char *) obj->vval.v_string);
|
||||
}
|
||||
rv.type = kObjectTypeString;
|
||||
rv.data.string = cstr_to_string((char *) obj->vval.v_string);
|
||||
break;
|
||||
|
||||
case VAR_NUMBER:
|
||||
|
Reference in New Issue
Block a user