Karsten Hopp f6516a
To: vim_dev@googlegroups.com
Karsten Hopp f6516a
Subject: Patch 7.3.587
Karsten Hopp f6516a
Fcc: outbox
Karsten Hopp f6516a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp f6516a
Mime-Version: 1.0
Karsten Hopp f6516a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp f6516a
Content-Transfer-Encoding: 8bit
Karsten Hopp f6516a
------------
Karsten Hopp f6516a
Karsten Hopp f6516a
Patch 7.3.587
Karsten Hopp f6516a
Problem:    Compiler warning for local var shadowing global var.
Karsten Hopp f6516a
Solution:   Rename the var and move it to an inner block. (Christian Brabandt)
Karsten Hopp f6516a
Files:	    src/buffer.c
Karsten Hopp f6516a
Karsten Hopp f6516a
Karsten Hopp f6516a
*** ../vim-7.3.586/src/buffer.c	2012-06-20 17:54:34.000000000 +0200
Karsten Hopp f6516a
--- src/buffer.c	2012-07-06 16:19:32.000000000 +0200
Karsten Hopp f6516a
***************
Karsten Hopp f6516a
*** 1363,1371 ****
Karsten Hopp f6516a
      int		action;
Karsten Hopp f6516a
  {
Karsten Hopp f6516a
      buf_T	*prevbuf;
Karsten Hopp f6516a
- #ifdef FEAT_WINDOWS
Karsten Hopp f6516a
-     win_T	*prevwin;
Karsten Hopp f6516a
- #endif
Karsten Hopp f6516a
      int		unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL
Karsten Hopp f6516a
  						     || action == DOBUF_WIPE);
Karsten Hopp f6516a
  
Karsten Hopp f6516a
--- 1363,1368 ----
Karsten Hopp f6516a
***************
Karsten Hopp f6516a
*** 1406,1412 ****
Karsten Hopp f6516a
  #endif
Karsten Hopp f6516a
  	{
Karsten Hopp f6516a
  #ifdef FEAT_WINDOWS
Karsten Hopp f6516a
! 	    prevwin = curwin;
Karsten Hopp f6516a
  #endif
Karsten Hopp f6516a
  	    if (prevbuf == curbuf)
Karsten Hopp f6516a
  		u_sync(FALSE);
Karsten Hopp f6516a
--- 1403,1409 ----
Karsten Hopp f6516a
  #endif
Karsten Hopp f6516a
  	{
Karsten Hopp f6516a
  #ifdef FEAT_WINDOWS
Karsten Hopp f6516a
! 	    win_T  *previouswin = curwin;
Karsten Hopp f6516a
  #endif
Karsten Hopp f6516a
  	    if (prevbuf == curbuf)
Karsten Hopp f6516a
  		u_sync(FALSE);
Karsten Hopp f6516a
***************
Karsten Hopp f6516a
*** 1415,1423 ****
Karsten Hopp f6516a
  			&& !P_HID(prevbuf)
Karsten Hopp f6516a
  			&& !bufIsChanged(prevbuf)) ? DOBUF_UNLOAD : 0, FALSE);
Karsten Hopp f6516a
  #ifdef FEAT_WINDOWS
Karsten Hopp f6516a
! 	    if (curwin != prevwin && win_valid(prevwin))
Karsten Hopp f6516a
  	      /* autocommands changed curwin, Grr! */
Karsten Hopp f6516a
! 	      curwin = prevwin;
Karsten Hopp f6516a
  #endif
Karsten Hopp f6516a
  	}
Karsten Hopp f6516a
      }
Karsten Hopp f6516a
--- 1412,1420 ----
Karsten Hopp f6516a
  			&& !P_HID(prevbuf)
Karsten Hopp f6516a
  			&& !bufIsChanged(prevbuf)) ? DOBUF_UNLOAD : 0, FALSE);
Karsten Hopp f6516a
  #ifdef FEAT_WINDOWS
Karsten Hopp f6516a
! 	    if (curwin != previouswin && win_valid(previouswin))
Karsten Hopp f6516a
  	      /* autocommands changed curwin, Grr! */
Karsten Hopp f6516a
! 	      curwin = previouswin;
Karsten Hopp f6516a
  #endif
Karsten Hopp f6516a
  	}
Karsten Hopp f6516a
      }
Karsten Hopp f6516a
*** ../vim-7.3.586/src/version.c	2012-07-06 13:40:44.000000000 +0200
Karsten Hopp f6516a
--- src/version.c	2012-07-06 16:19:08.000000000 +0200
Karsten Hopp f6516a
***************
Karsten Hopp f6516a
*** 716,717 ****
Karsten Hopp f6516a
--- 716,719 ----
Karsten Hopp f6516a
  {   /* Add new patch number below this line */
Karsten Hopp f6516a
+ /**/
Karsten Hopp f6516a
+     587,
Karsten Hopp f6516a
  /**/
Karsten Hopp f6516a
Karsten Hopp f6516a
-- 
Karsten Hopp f6516a
There's no place like $(HOME)!
Karsten Hopp f6516a
Karsten Hopp f6516a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp f6516a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp f6516a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp f6516a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///