diff src/proto/evalvars.pro @ 33339:441ceb1c45c1 v9.0.1933

patch 9.0.1933: Can change the type of a v: variable using if_lua Commit: https://github.com/vim/vim/commit/edcba96c0088210927558b0e2583f3b689f457c4 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Sep 24 23:13:51 2023 +0200 patch 9.0.1933: Can change the type of a v: variable using if_lua Problem: Can change the type of a v: variable using if_lua. Solution: Add additional handling of v: variables like :let. closes: #13161 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Sep 2023 23:30:03 +0200
parents 824fc05d9571
children d7b7fa7edb3b
line wrap: on
line diff
--- a/src/proto/evalvars.pro
+++ b/src/proto/evalvars.pro
@@ -75,6 +75,7 @@ void unref_var_dict(dict_T *dict);
 void vars_clear(hashtab_T *ht);
 void vars_clear_ext(hashtab_T *ht, int free_val);
 void delete_var(hashtab_T *ht, hashitem_T *hi);
+int before_set_vvar(char_u *varname, dictitem_T *di, typval_T *tv, int copy, int *type_error);
 void set_var(char_u *name, typval_T *tv, int copy);
 void set_var_const(char_u *name, scid_T sid, type_T *type_arg, typval_T *tv_arg, int copy, int flags_arg, int var_idx);
 int var_check_permission(dictitem_T *di, char_u *name);