summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
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);