mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
eval: Fix save_tv_as_string
to handle non-string types
This commit is contained in:
@@ -15148,8 +15148,6 @@ static char_u *save_tv_as_string(typval_T *tv, ssize_t *len)
|
||||
ret = vim_strsave(ret);
|
||||
} else {
|
||||
ret = NULL;
|
||||
}
|
||||
if (tv->v_type != VAR_STRING) {
|
||||
*len = -1;
|
||||
}
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user