0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1590

Problem:    Warning for shadowed variable. (Christian Brabandt)
Solution:   Move the variable into a local block.
This commit is contained in:
Bram Moolenaar
2016-03-18 19:39:25 +01:00
parent 9e63f61cb0
commit 3f242a844e
2 changed files with 4 additions and 1 deletions

View File

@@ -21660,7 +21660,6 @@ handle_subscript(
char_u *s;
int len;
typval_T functv;
partial_T *pt = NULL;
while (ret == OK
&& (**arg == '['
@@ -21671,6 +21670,8 @@ handle_subscript(
{
if (**arg == '(')
{
partial_T *pt = NULL;
/* need to copy the funcref so that we can clear rettv */
if (evaluate)
{