mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
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.
9b4a15d5db
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user