3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.480
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.480 (after 7.4.479)
3ef2ca
Problem:    MS-Windows: Can't build.
3ef2ca
Solution:   Remove goto, use a flag instead.
3ef2ca
Files:	    src/os_win32.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.479/src/os_win32.c	2014-10-15 22:50:06.946093724 +0200
3ef2ca
--- src/os_win32.c	2014-10-16 16:09:57.182230006 +0200
3ef2ca
***************
3ef2ca
*** 4646,4654 ****
3ef2ca
      int		x = 0;
3ef2ca
      int		tmode = cur_tmode;
3ef2ca
  #ifdef FEAT_TITLE
3ef2ca
!     char szShellTitle[512];
3ef2ca
! 
3ef2ca
  # ifdef FEAT_MBYTE
3ef2ca
      /* Change the title to reflect that we are in a subshell. */
3ef2ca
      if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
3ef2ca
      {
3ef2ca
--- 4646,4655 ----
3ef2ca
      int		x = 0;
3ef2ca
      int		tmode = cur_tmode;
3ef2ca
  #ifdef FEAT_TITLE
3ef2ca
!     char	szShellTitle[512];
3ef2ca
  # ifdef FEAT_MBYTE
3ef2ca
+     int		did_set_title = FALSE;
3ef2ca
+ 
3ef2ca
      /* Change the title to reflect that we are in a subshell. */
3ef2ca
      if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
3ef2ca
      {
3ef2ca
***************
3ef2ca
*** 4671,4695 ****
3ef2ca
  			wcscat(szShellTitle, wn);
3ef2ca
  		    SetConsoleTitleW(szShellTitle);
3ef2ca
  		    vim_free(wn);
3ef2ca
! 		    goto didset;
3ef2ca
  		}
3ef2ca
  	    }
3ef2ca
  	}
3ef2ca
      }
3ef2ca
! #endif
3ef2ca
!     /* Change the title to reflect that we are in a subshell. */
3ef2ca
!     if (GetConsoleTitle(szShellTitle, sizeof(szShellTitle) - 4) > 0)
3ef2ca
!     {
3ef2ca
! 	if (cmd == NULL)
3ef2ca
! 	    strcat(szShellTitle, " :sh");
3ef2ca
! 	else
3ef2ca
  	{
3ef2ca
! 	    strcat(szShellTitle, " - !");
3ef2ca
! 	    if ((strlen(szShellTitle) + strlen(cmd) < sizeof(szShellTitle)))
3ef2ca
! 		strcat(szShellTitle, cmd);
3ef2ca
  	}
3ef2ca
- 	SetConsoleTitle(szShellTitle);
3ef2ca
-     }
3ef2ca
  #endif
3ef2ca
  
3ef2ca
      out_flush();
3ef2ca
--- 4672,4697 ----
3ef2ca
  			wcscat(szShellTitle, wn);
3ef2ca
  		    SetConsoleTitleW(szShellTitle);
3ef2ca
  		    vim_free(wn);
3ef2ca
! 		    did_set_title = TRUE;
3ef2ca
  		}
3ef2ca
  	    }
3ef2ca
  	}
3ef2ca
      }
3ef2ca
!     if (!did_set_title)
3ef2ca
! # endif
3ef2ca
! 	/* Change the title to reflect that we are in a subshell. */
3ef2ca
! 	if (GetConsoleTitle(szShellTitle, sizeof(szShellTitle) - 4) > 0)
3ef2ca
  	{
3ef2ca
! 	    if (cmd == NULL)
3ef2ca
! 		strcat(szShellTitle, " :sh");
3ef2ca
! 	    else
3ef2ca
! 	    {
3ef2ca
! 		strcat(szShellTitle, " - !");
3ef2ca
! 		if ((strlen(szShellTitle) + strlen(cmd) < sizeof(szShellTitle)))
3ef2ca
! 		    strcat(szShellTitle, cmd);
3ef2ca
! 	    }
3ef2ca
! 	    SetConsoleTitle(szShellTitle);
3ef2ca
  	}
3ef2ca
  #endif
3ef2ca
  
3ef2ca
      out_flush();
3ef2ca
*** ../vim-7.4.479/src/version.c	2014-10-15 22:50:06.950093724 +0200
3ef2ca
--- src/version.c	2014-10-16 16:11:34.278230218 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     480,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Ten bugs in the hand is better than one as yet undetected.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///