vim-patch:7.4.2009

Problem:    Messages test fails.
Solution:   Don't set redir_execute before returning.

ed59aa60d3
This commit is contained in:
James McCoy 2017-01-08 23:15:03 -05:00
parent 6520517e22
commit 9b47115d53
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
2 changed files with 6 additions and 6 deletions

View File

@ -8855,10 +8855,6 @@ static void f_execute(typval_T *argvars, typval_T *rettv, FunPtr fptr)
return; return;
} }
garray_T capture_local;
ga_init(&capture_local, (int)sizeof(char), 80);
capture_ga = &capture_local;
if (argvars[1].v_type != VAR_UNKNOWN) { if (argvars[1].v_type != VAR_UNKNOWN) {
char_u buf[NUMBUFLEN]; char_u buf[NUMBUFLEN];
char_u *s = get_tv_string_buf_chk(&argvars[1], buf); char_u *s = get_tv_string_buf_chk(&argvars[1], buf);
@ -8877,6 +8873,10 @@ static void f_execute(typval_T *argvars, typval_T *rettv, FunPtr fptr)
msg_silent++; msg_silent++;
} }
garray_T capture_local;
ga_init(&capture_local, (int)sizeof(char), 80);
capture_ga = &capture_local;
if (argvars[0].v_type != VAR_LIST) { if (argvars[0].v_type != VAR_LIST) {
do_cmdline_cmd((char *)get_tv_string(&argvars[0])); do_cmdline_cmd((char *)get_tv_string(&argvars[0]));
} else if (argvars[0].vval.v_list != NULL) { } else if (argvars[0].vval.v_list != NULL) {

View File

@ -431,8 +431,8 @@ static int included_patches[] = {
2012, 2012,
2011, 2011,
2010, 2010,
// 2009, 2009,
// 2008, 2008,
2007, 2007,
// 2006, // 2006,
2005, 2005,