summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-01-10 22:26:17 +0100
committerBram Moolenaar <Bram@vim.org>2012-01-10 22:26:17 +0100
commit70b2a56d5a8fd54f3d0707fa77dea86a4bd8195f (patch)
tree2144b21b49d79de16665fb585daf1e9cf66e85c0 /src/edit.c
parent1f5965b3c4d2b29e167a5dfecdf0ec59fe4c45c0 (diff)
updated for version 7.3.400v7.3.400
Problem: Compiler warnings for shadowed variables. Solution: Remove or rename the variables.
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/edit.c b/src/edit.c
index daab0fee7f..4289ff5cda 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4003,24 +4003,24 @@ ins_compl_add_list(list)
ins_compl_add_dict(dict)
dict_T *dict;
{
- dictitem_T *refresh;
- dictitem_T *words;
+ dictitem_T *di_refresh;
+ dictitem_T *di_words;
/* Check for optional "refresh" item. */
compl_opt_refresh_always = FALSE;
- refresh = dict_find(dict, (char_u *)"refresh", 7);
- if (refresh != NULL && refresh->di_tv.v_type == VAR_STRING)
+ di_refresh = dict_find(dict, (char_u *)"refresh", 7);
+ if (di_refresh != NULL && di_refresh->di_tv.v_type == VAR_STRING)
{
- char_u *v = refresh->di_tv.vval.v_string;
+ char_u *v = di_refresh->di_tv.vval.v_string;
if (v != NULL && STRCMP(v, (char_u *)"always") == 0)
compl_opt_refresh_always = TRUE;
}
/* Add completions from a "words" list. */
- words = dict_find(dict, (char_u *)"words", 5);
- if (words != NULL && words->di_tv.v_type == VAR_LIST)
- ins_compl_add_list(words->di_tv.vval.v_list);
+ di_words = dict_find(dict, (char_u *)"words", 5);
+ if (di_words != NULL && di_words->di_tv.v_type == VAR_LIST)
+ ins_compl_add_list(di_words->di_tv.vval.v_list);
}
/*