summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-07-16 17:31:53 +0200
committerBram Moolenaar <Bram@vim.org>2012-07-16 17:31:53 +0200
commitbdb620560b3199828f9852e9c9453d56e951a5f9 (patch)
tree3901feff854f6353d8f82127f936289ba5a73cf6 /src/buffer.c
parentc2ece10274c01c50534bfdcd4d8a03229356101d (diff)
downloadvim-git-bdb620560b3199828f9852e9c9453d56e951a5f9.tar.gz
updated for version 7.3.603v7.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)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d6d039f0e..355dbc739 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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);