summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-05-22 14:19:56 +0200
committerBram Moolenaar <Bram@vim.org>2014-05-22 14:19:56 +0200
commitcbc67723bde3c05e4bc0788457961b41304576ee (patch)
tree130117a243376a09e5e156af3b504a1adf7192ba /src/eval.c
parent050fe7ebad159f48704bd3a991632d0330ef0cf2 (diff)
downloadvim-cbc67723bde3c05e4bc0788457961b41304576ee.zip
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)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 6ba2dd8aa..bc7f22ad7 100644
--- 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]))
{