0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.3.603

Problem:    It is possible to add replace builtin functions by calling
            extend() on g:.
Solution:   Add a flag to a dict to indicate it is a scope.  Check for
            existing functions. (ZyX)
This commit is contained in:
Bram Moolenaar
2012-07-16 17:31:53 +02:00
parent c2ece10274
commit bdb620560b
8 changed files with 61 additions and 18 deletions

View File

@@ -3468,7 +3468,7 @@ alloc_tabpage()
# endif
#ifdef FEAT_EVAL
/* init t: variables */
init_var_dict(&tp->tp_vars, &tp->tp_winvar);
init_var_dict(&tp->tp_vars, &tp->tp_winvar, VAR_SCOPE);
#endif
tp->tp_ch_used = p_ch;
}
@@ -4410,7 +4410,7 @@ win_alloc(after, hidden)
#endif
#ifdef FEAT_EVAL
/* init w: variables */
init_var_dict(&new_wp->w_vars, &new_wp->w_winvar);
init_var_dict(&new_wp->w_vars, &new_wp->w_winvar, VAR_SCOPE);
#endif
#ifdef FEAT_FOLDING
foldInitWin(new_wp);