diff src/eval.c @ 5913:156f891d520e v7.4.298

updated for version 7.4.298 Problem: Can't have a funcref start with "t:". Solution: Add "t" to the list of accepted names. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Thu, 22 May 2014 14:19:56 +0200
parents be19015ef43c
children 05e1d8afcc5e
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -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]))
     {