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