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