summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-14 15:38:31 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-14 15:38:31 +0100
commit8f66717a1f835b8194139d158c1e2df8b30c3ef3 (patch)
treea85c2d9df9a47870d35c88ae849510407c670b81 /src/edit.c
parentfb95e212a2696e5b1c8b5e6b2984af59fa7ead6f (diff)
downloadvim-git-8f66717a1f835b8194139d158c1e2df8b30c3ef3.tar.gz
patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()v8.1.0583
Problem: Using illogical name for get_dict_number()/get_dict_string(). Solution: Rename to start with dict_.
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/edit.c b/src/edit.c
index 205dc65de..c23597691 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4343,23 +4343,23 @@ ins_compl_add_tv(typval_T *tv, int dir)
if (tv->v_type == VAR_DICT && tv->vval.v_dict != NULL)
{
- word = get_dict_string(tv->vval.v_dict, (char_u *)"word", FALSE);
- cptext[CPT_ABBR] = get_dict_string(tv->vval.v_dict,
+ word = dict_get_string(tv->vval.v_dict, (char_u *)"word", FALSE);
+ cptext[CPT_ABBR] = dict_get_string(tv->vval.v_dict,
(char_u *)"abbr", FALSE);
- cptext[CPT_MENU] = get_dict_string(tv->vval.v_dict,
+ cptext[CPT_MENU] = dict_get_string(tv->vval.v_dict,
(char_u *)"menu", FALSE);
- cptext[CPT_KIND] = get_dict_string(tv->vval.v_dict,
+ cptext[CPT_KIND] = dict_get_string(tv->vval.v_dict,
(char_u *)"kind", FALSE);
- cptext[CPT_INFO] = get_dict_string(tv->vval.v_dict,
+ cptext[CPT_INFO] = dict_get_string(tv->vval.v_dict,
(char_u *)"info", FALSE);
- cptext[CPT_USER_DATA] = get_dict_string(tv->vval.v_dict,
+ cptext[CPT_USER_DATA] = dict_get_string(tv->vval.v_dict,
(char_u *)"user_data", FALSE);
- if (get_dict_string(tv->vval.v_dict, (char_u *)"icase", FALSE) != NULL)
- icase = get_dict_number(tv->vval.v_dict, (char_u *)"icase");
- if (get_dict_string(tv->vval.v_dict, (char_u *)"dup", FALSE) != NULL)
- adup = get_dict_number(tv->vval.v_dict, (char_u *)"dup");
- if (get_dict_string(tv->vval.v_dict, (char_u *)"empty", FALSE) != NULL)
- aempty = get_dict_number(tv->vval.v_dict, (char_u *)"empty");
+ if (dict_get_string(tv->vval.v_dict, (char_u *)"icase", FALSE) != NULL)
+ icase = dict_get_number(tv->vval.v_dict, (char_u *)"icase");
+ if (dict_get_string(tv->vval.v_dict, (char_u *)"dup", FALSE) != NULL)
+ adup = dict_get_number(tv->vval.v_dict, (char_u *)"dup");
+ if (dict_get_string(tv->vval.v_dict, (char_u *)"empty", FALSE) != NULL)
+ aempty = dict_get_number(tv->vval.v_dict, (char_u *)"empty");
}
else
{