summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/option.c b/src/option.c
index 504b92a71..0cfc39c61 100644
--- a/src/option.c
+++ b/src/option.c
@@ -13222,11 +13222,11 @@ get_winbuf_options(int bufopt)
if (varp != NULL)
{
if (opt->flags & P_STRING)
- dict_add_nr_str(d, opt->fullname, 0L, *(char_u **)varp);
+ dict_add_string(d, opt->fullname, *(char_u **)varp);
else if (opt->flags & P_NUM)
- dict_add_nr_str(d, opt->fullname, *(long *)varp, NULL);
+ dict_add_number(d, opt->fullname, *(long *)varp);
else
- dict_add_nr_str(d, opt->fullname, *(int *)varp, NULL);
+ dict_add_number(d, opt->fullname, *(int *)varp);
}
}
}