diff options
author | Billy Su <g4691821@gmail.com> | 2020-04-28 23:21:50 +0800 |
---|---|---|
committer | Billy Su <g4691821@gmail.com> | 2020-06-06 23:24:58 +0800 |
commit | 1805fb469a39d998f9bef0415999aa835d051044 (patch) | |
tree | e840cff3201d735955eab935a35d3437f497607f /src/nvim/ops.c | |
parent | dbc8ec94464049311e69274cad562585d7bb6749 (diff) | |
download | rneovim-1805fb469a39d998f9bef0415999aa835d051044.tar.gz rneovim-1805fb469a39d998f9bef0415999aa835d051044.tar.bz2 rneovim-1805fb469a39d998f9bef0415999aa835d051044.zip |
vim-patch:8.2.0111: VAR_SPECIAL is also used for booleans
Problem: VAR_SPECIAL is also used for booleans.
Solution: Add VAR_BOOL for better type checking.
https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 755c1519fd..eb32a1dd9b 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2740,8 +2740,8 @@ static void do_autocmd_textyankpost(oparg_T *oap, yankreg_T *reg) tv_dict_add_str(dict, S_LEN("regname"), buf); // Motion type: inclusive or exclusive. - tv_dict_add_special(dict, S_LEN("inclusive"), - oap->inclusive ? kSpecialVarTrue : kSpecialVarFalse); + tv_dict_add_bool(dict, S_LEN("inclusive"), + oap->inclusive ? kBoolVarTrue : kBoolVarFalse); // Kind of operation: yank, delete, change). buf[0] = (char)get_op_char(oap->op_type); @@ -2749,8 +2749,8 @@ static void do_autocmd_textyankpost(oparg_T *oap, yankreg_T *reg) tv_dict_add_str(dict, S_LEN("operator"), buf); // Selection type: visual or not. - tv_dict_add_special(dict, S_LEN("visual"), - oap->is_VIsual ? kSpecialVarTrue : kSpecialVarFalse); + tv_dict_add_bool(dict, S_LEN("visual"), + oap->is_VIsual ? kBoolVarTrue : kBoolVarFalse); tv_dict_set_keys_readonly(dict); textlock++; |