]> granicus.if.org Git - vim/commitdiff
patch 7.4.2009 v7.4.2009
authorBram Moolenaar <Bram@vim.org>
Sat, 9 Jul 2016 15:41:12 +0000 (17:41 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 9 Jul 2016 15:41:12 +0000 (17:41 +0200)
Problem:    Messages test fails.
Solution:   Don't set redir_execute before returning.

src/eval.c
src/version.c

index ab808b9e2adcdb524fa6eee411d32177e6576d8c..3ab8ea4956b0c19f3fb6376e961da2f68543b414 100644 (file)
@@ -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)
index 5305beecf8c06735ca8018e99cc9222fd4baf8cf..08675cd467993e0c98c9da813b10516ec4aa0d15 100644 (file)
@@ -758,6 +758,10 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2009,
+/**/
+    2008,
 /**/
     2007,
 /**/