Skip to content

Commit 7d6e890

Browse files
committed
updated for version 7.3.587
Problem: Compiler warning for local var shadowing global var. Solution: Rename the var and move it to an inner block. (Christian Brabandt)
1 parent fc328fd commit 7d6e890

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/buffer.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,9 +1363,6 @@ set_curbuf(buf, action)
13631363
int action;
13641364
{
13651365
buf_T *prevbuf;
1366-
#ifdef FEAT_WINDOWS
1367-
win_T *prevwin;
1368-
#endif
13691366
int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL
13701367
|| action == DOBUF_WIPE);
13711368

@@ -1406,7 +1403,7 @@ set_curbuf(buf, action)
14061403
#endif
14071404
{
14081405
#ifdef FEAT_WINDOWS
1409-
prevwin = curwin;
1406+
win_T *previouswin = curwin;
14101407
#endif
14111408
if (prevbuf == curbuf)
14121409
u_sync(FALSE);
@@ -1415,9 +1412,9 @@ set_curbuf(buf, action)
14151412
&& !P_HID(prevbuf)
14161413
&& !bufIsChanged(prevbuf)) ? DOBUF_UNLOAD : 0, FALSE);
14171414
#ifdef FEAT_WINDOWS
1418-
if (curwin != prevwin && win_valid(prevwin))
1415+
if (curwin != previouswin && win_valid(previouswin))
14191416
/* autocommands changed curwin, Grr! */
1420-
curwin = prevwin;
1417+
curwin = previouswin;
14211418
#endif
14221419
}
14231420
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
587,
717719
/**/
718720
586,
719721
/**/

0 commit comments

Comments
 (0)