mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.4.480
Problem: MS-Windows: Can't build. Solution: Remove goto, use a flag instead.
This commit is contained in:
@@ -4647,8 +4647,9 @@ mch_call_shell(
|
||||
int tmode = cur_tmode;
|
||||
#ifdef FEAT_TITLE
|
||||
char szShellTitle[512];
|
||||
|
||||
# ifdef FEAT_MBYTE
|
||||
int did_set_title = FALSE;
|
||||
|
||||
/* Change the title to reflect that we are in a subshell. */
|
||||
if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
|
||||
{
|
||||
@@ -4671,11 +4672,12 @@ mch_call_shell(
|
||||
wcscat(szShellTitle, wn);
|
||||
SetConsoleTitleW(szShellTitle);
|
||||
vim_free(wn);
|
||||
goto didset;
|
||||
did_set_title = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!did_set_title)
|
||||
# endif
|
||||
/* Change the title to reflect that we are in a subshell. */
|
||||
if (GetConsoleTitle(szShellTitle, sizeof(szShellTitle) - 4) > 0)
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
480,
|
||||
/**/
|
||||
479,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user