Help says:

  A Funcref variable must start with a capital, "s:", "w:", "t:" or "b:".

But "t:" prefix causes error.

  :let t:x = function('tr')
  E704: Funcref variable name must start with a capital: t:x

Please check the following patch.

diff -r 94df797ed6b0 src/eval.c
--- a/src/eval.c    Sat Apr 12 13:12:24 2014 +0200
+++ b/src/eval.c    Thu May 15 23:58:09 2014 +0900
@@ -21037,7 +21037,7 @@
     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] == ':')
+    if (!(vim_strchr((char_u *)"wbst", name[0]) != NULL && name[1] == ':')
         && !ASCII_ISUPPER((name[0] != NUL && name[1] == ':')
                              ? name[2] : name[0]))
     {

-- 
Yukihiro Nakadaira - yukihiro.nakada...@gmail.com

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui