Problem: shadow variable warning in menu.c
Solution: Rename the variable (John Marriott).
closes: #19120
Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
if (tearpath != NULL)
{
char_u *s;
- int idx;
+ int len;
STRCPY(tearpath, menu_path);
- idx = (int)(next_name - path_name - 1);
- for (s = tearpath; *s && s < tearpath + idx; MB_PTR_ADV(s))
+ len = (int)(next_name - path_name - 1);
+ for (s = tearpath; *s && s < tearpath + len; MB_PTR_ADV(s))
{
if ((*s == '\\' || *s == Ctrl_V) && s[1])
{
- ++idx;
+ ++len;
++s;
}
}
- tearpath[idx] = NUL;
+ tearpath[len] = NUL;
gui_add_tearoff(tearpath, pri_tab, pri_idx);
vim_free(tearpath);
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2067,
/**/
2066,
/**/