diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index cf9612439b..386c6d88d9 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -5676,7 +5676,7 @@ static Dictionary vimoption2dict(vimoption_T *opt, int req_scope, buf_T *buf, wi char *def_val = opt->def_val; if (opt->flags & P_STRING) { type = "string"; - def = CSTR_TO_OBJ(def_val ? (char *)def_val : ""); + def = CSTR_TO_OBJ(def_val ? def_val : ""); } else if (opt->flags & P_NUM) { type = "number"; def = INTEGER_OBJ((Integer)(intptr_t)def_val); |