aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2015-06-15 22:09:33 +0900
committerJustin M. Keyes <justinkz@gmail.com>2015-06-20 11:53:13 -0400
commit8b200f904f33ea55c11735ec2abcf0ab3925a537 (patch)
treeba136b42b4e8522b172122584dcd94d75281c684 /src/nvim/eval.c
parent7b87dc9299993003ea9cd2e0f0f38b881010501d (diff)
downloadrneovim-8b200f904f33ea55c11735ec2abcf0ab3925a537.tar.gz
rneovim-8b200f904f33ea55c11735ec2abcf0ab3925a537.tar.bz2
rneovim-8b200f904f33ea55c11735ec2abcf0ab3925a537.zip
completion: Initialize v:completed_item #2839
v:completed_item should always be a dict (not empty string), even before the first completion.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 6bd2b23c73..93590445c9 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -503,6 +503,7 @@ void eval_init(void)
/* add to compat scope dict */
hash_add(&compat_hashtab, p->vv_di.di_key);
}
+ set_vim_var_dict(VV_COMPLETED_ITEM, dict_alloc());
set_vim_var_nr(VV_SEARCHFORWARD, 1L);
set_vim_var_nr(VV_HLSEARCH, 1L);
set_reg_var(0); /* default for v:register is not 0 but '"' */