diff options
author | Bram Moolenaar <bram@vim.org> | 2014-05-22 14:19:56 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2014-05-22 14:19:56 +0200 |
commit | f1f26acdb9d764c31a98728df472341385bc5991 (patch) | |
tree | 2b4f38e02690612507c74d7531011213b84acd5b | |
parent | fbdbf387e09ed2db2addd377b753a0b0cbfb080b (diff) | |
download | vim-f1f26acdb9d764c31a98728df472341385bc5991.tar.gz |
Problem: Can't have a funcref start with "t:".
Solution: Add "t" to the list of accepted names. (Yukihiro Nakadaira)
-rw-r--r-- | src/eval.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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])) { diff --git a/src/version.c b/src/version.c index 40e967df..1a1755ef 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 298, +/**/ 297, /**/ 296, |