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