diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-09-18 21:23:23 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-09-28 21:36:11 +0200 |
commit | 42731a9a154c991706b8b5816fbdf5d31726cd97 (patch) | |
tree | 9cfaabf0d84feb0e0f3e37c536f88edce753aa64 /src/nvim/eval.c | |
parent | 87fa495b21c8afa77c190b30e67c78f237c77216 (diff) | |
download | rneovim-42731a9a154c991706b8b5816fbdf5d31726cd97.tar.gz rneovim-42731a9a154c991706b8b5816fbdf5d31726cd97.tar.bz2 rneovim-42731a9a154c991706b8b5816fbdf5d31726cd97.zip |
vim-patch:7.4.1648
Problem: Compiler has a problem copying a string into di_key[]. (Yegappan
Lakshmanan)
Solution: Add dictitem16_T.
https://github.com/vim/vim/commit/bee6c0cf86a75faa2aa893f2c9db82fd944a89a5
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7d7aea83af..045ca22e16 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -292,8 +292,8 @@ typedef enum { .vv_di = { \ .di_tv = { .v_type = type }, \ .di_flags = 0, \ + .di_key = { 0 }, \ }, \ - .vv_filler = { 0 }, \ .vv_flags = flags, \ } @@ -303,8 +303,7 @@ typedef enum { // variables with the VV_ defines. static struct vimvar { char *vv_name; ///< Name of the variable, without v:. - dictitem_T vv_di; ///< Value of the variable, with name. - char vv_filler[16]; ///< Space for longest name from below. + dictitem16_T vv_di; ///< Value and name for key (max 16 chars) char vv_flags; ///< Flags: #VV_COMPAT, #VV_RO, #VV_RO_SBX. } vimvars[] = { |