summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-25 21:44:33 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-25 21:44:33 +0000
commit1fad5d49c918518c392a0b8b665d9447ede6c201 (patch)
treef2389205447d3957b011ce6f9f61a570e3f6d76b /src/buffer.c
parent623fd5e206d3e1e1f1f9cfa18656b263995a4cf2 (diff)
downloadvim-git-1fad5d49c918518c392a0b8b665d9447ede6c201.tar.gz
updated for version 7.0044
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4579a6401..dc28caf63 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -608,7 +608,8 @@ free_buffer_stuff(buf, free_options)
free_buf_options(buf, TRUE);
}
#ifdef FEAT_EVAL
- vars_clear(&buf->b_vars); /* free all internal variables */
+ vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */
+ hash_init(&buf->b_vars.dv_hashtab);
#endif
#ifdef FEAT_USR_CMDS
uc_clear(&buf->b_ucmds); /* clear local user commands */
@@ -1626,7 +1627,11 @@ buflist_new(ffname, sfname, lnum, flags)
buf->b_wininfo->wi_win = curwin;
#ifdef FEAT_EVAL
- vars_init(&buf->b_vars); /* init internal variables */
+ init_var_dict(&buf->b_vars, &buf->b_bufvar); /* init b: variables */
+#endif
+#ifdef FEAT_SYN_HL
+ hash_init(&buf->b_keywtab);
+ hash_init(&buf->b_keywtab_ic);
#endif
buf->b_fname = buf->b_sfname;