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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user