From e0be167a805fd547c25ec1ec97fd4c7f13046236 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 8 Jul 2018 16:50:37 +0200 Subject: patch 8.1.0166: using dict_add_nr_str() is clumsy Problem: Using dict_add_nr_str() is clumsy. Solution: Split into two functions. (Ozaki Kiichi, closes #3154) --- src/option.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/option.c') 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); } } } -- cgit v1.2.1