]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.298 v7.4.298
authorBram Moolenaar <Bram@vim.org>
Thu, 22 May 2014 12:19:56 +0000 (14:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 22 May 2014 12:19:56 +0000 (14:19 +0200)
Problem:    Can't have a funcref start with "t:".
Solution:   Add "t" to the list of accepted names. (Yukihiro Nakadaira)

src/eval.c
src/version.c

index 6ba2dd8aa5509b027419eeeed0a7e5e2217253a5..bc7f22ad71809525362fd0ce5952d619df5b0863 100644 (file)
@@ -21064,7 +21064,8 @@ var_check_func_name(name, new_var)
     char_u *name;    /* points to start of variable name */
     int    new_var;  /* TRUE when creating the variable */
 {
-    if (!(vim_strchr((char_u *)"wbs", name[0]) != NULL && name[1] == ':')
+    /* Allow for w: b: s: and t:. */
+    if (!(vim_strchr((char_u *)"wbst", name[0]) != NULL && name[1] == ':')
            && !ASCII_ISUPPER((name[0] != NUL && name[1] == ':')
                                                     ? name[2] : name[0]))
     {
index 40e967dfe5e296a66ed67adc564aac7bcd3909c4..1a1755efa8c9b47c3bb6f867150b2c3c6f8493ce 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    298,
 /**/
     297,
 /**/