mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()
Problem: Inconsistent naming of get_list_tv() and eval_dict(). Solution: Rename get_list_tv() to eval_list(). Similarly for eval_number(), eval_string(), eval_lit_string() and a few others.
This commit is contained in:
@@ -302,9 +302,9 @@ handle_import(char_u *arg_start, garray_T *gap, int import_sid, void *cctx)
|
||||
tv.v_type = VAR_UNKNOWN;
|
||||
// TODO: should we accept any expression?
|
||||
if (*arg == '\'')
|
||||
ret = get_lit_string_tv(&arg, &tv, TRUE);
|
||||
ret = eval_lit_string(&arg, &tv, TRUE);
|
||||
else if (*arg == '"')
|
||||
ret = get_string_tv(&arg, &tv, TRUE);
|
||||
ret = eval_string(&arg, &tv, TRUE);
|
||||
if (ret == FAIL || tv.vval.v_string == NULL || *tv.vval.v_string == NUL)
|
||||
{
|
||||
emsg(_("E1071: Invalid string after \"from\""));
|
||||
|
Reference in New Issue
Block a user