Problem: Compiler warning for local var shadowing global var.
Solution: Rename the var and move it to an inner block. (Christian Brabandt)
int action;
{
buf_T *prevbuf;
-#ifdef FEAT_WINDOWS
- win_T *prevwin;
-#endif
int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL
|| action == DOBUF_WIPE);
#endif
{
#ifdef FEAT_WINDOWS
- prevwin = curwin;
+ win_T *previouswin = curwin;
#endif
if (prevbuf == curbuf)
u_sync(FALSE);
&& !P_HID(prevbuf)
&& !bufIsChanged(prevbuf)) ? DOBUF_UNLOAD : 0, FALSE);
#ifdef FEAT_WINDOWS
- if (curwin != prevwin && win_valid(prevwin))
+ if (curwin != previouswin && win_valid(previouswin))
/* autocommands changed curwin, Grr! */
- curwin = prevwin;
+ curwin = previouswin;
#endif
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 587,
/**/
586,
/**/