aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorBilly Su <g4691821@gmail.com>2020-04-28 23:21:50 +0800
committerBilly Su <g4691821@gmail.com>2020-06-06 23:24:58 +0800
commit1805fb469a39d998f9bef0415999aa835d051044 (patch)
treee840cff3201d735955eab935a35d3437f497607f /src/nvim/ex_getln.c
parentdbc8ec94464049311e69274cad562585d7bb6749 (diff)
downloadrneovim-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/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 56a8f56753..1a836b7a98 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -432,8 +432,8 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
tv_dict_add_nr(dict, S_LEN("cmdlevel"), ccline.level);
tv_dict_set_keys_readonly(dict);
// not readonly:
- tv_dict_add_special(dict, S_LEN("abort"),
- s->gotesc ? kSpecialVarTrue : kSpecialVarFalse);
+ tv_dict_add_bool(dict, S_LEN("abort"),
+ s->gotesc ? kBoolVarTrue : kBoolVarFalse);
try_enter(&tstate);
apply_autocmds(EVENT_CMDLINELEAVE, (char_u *)firstcbuf, (char_u *)firstcbuf,
false, curbuf);