forked from aniani/vim
patch 7.4.2009
Problem: Messages test fails. Solution: Don't set redir_execute before returning.
This commit is contained in:
parent
79815f1ec7
commit
ed59aa60d3
14
src/eval.c
14
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
|
||||
@ -21169,8 +21169,8 @@ f_timer_stop(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
|
||||
if (argvars[0].v_type != VAR_NUMBER)
|
||||
{
|
||||
EMSG(_(e_number_exp));
|
||||
return;
|
||||
EMSG(_(e_number_exp));
|
||||
return;
|
||||
}
|
||||
timer = find_timer((int)get_tv_number(&argvars[0]));
|
||||
if (timer != NULL)
|
||||
|
@ -758,6 +758,10 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2009,
|
||||
/**/
|
||||
2008,
|
||||
/**/
|
||||
2007,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user