0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -1747,7 +1747,8 @@ buflist_new(ffname, sfname, lnum, flags)
buf->b_wininfo->wi_win = curwin;
#ifdef FEAT_EVAL
init_var_dict(&buf->b_vars, &buf->b_bufvar); /* init b: variables */
/* init b: variables */
init_var_dict(&buf->b_vars, &buf->b_bufvar, VAR_SCOPE);
#endif
#ifdef FEAT_SYN_HL
hash_init(&buf->b_s.b_keywtab);