mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 7.4.2009
Problem: Messages test fails. Solution: Don't set redir_execute before returning.
This commit is contained in:
10
src/eval.c
10
src/eval.c
@@ -11445,11 +11445,6 @@ f_execute(typval_T *argvars, typval_T *rettv)
|
||||
return;
|
||||
}
|
||||
|
||||
if (redir_execute)
|
||||
save_ga = redir_execute_ga;
|
||||
ga_init2(&redir_execute_ga, (int)sizeof(char), 500);
|
||||
redir_execute = TRUE;
|
||||
|
||||
if (argvars[1].v_type != VAR_UNKNOWN)
|
||||
{
|
||||
char_u buf[NUMBUFLEN];
|
||||
@@ -11468,6 +11463,11 @@ f_execute(typval_T *argvars, typval_T *rettv)
|
||||
else
|
||||
++msg_silent;
|
||||
|
||||
if (redir_execute)
|
||||
save_ga = redir_execute_ga;
|
||||
ga_init2(&redir_execute_ga, (int)sizeof(char), 500);
|
||||
redir_execute = TRUE;
|
||||
|
||||
if (cmd != NULL)
|
||||
do_cmdline_cmd(cmd);
|
||||
else
|
||||
|
@@ -758,6 +758,10 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2009,
|
||||
/**/
|
||||
2008,
|
||||
/**/
|
||||
2007,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user