aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/eval.c10
-rw-r--r--src/nvim/version.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index c8042695d2..92075e46f8 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -16114,11 +16114,11 @@ var_check_func_name (
int new_var /* TRUE when creating the variable */
)
{
- if (!(vim_strchr((char_u *)"wbs", name[0]) != NULL && name[1] == ':')
- && !ASCII_ISUPPER((name[0] != NUL && name[1] == ':')
- ? name[2] : name[0])) {
- EMSG2(_("E704: Funcref variable name must start with a capital: %s"),
- name);
+ // 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])) {
+ EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
return TRUE;
}
/* Don't allow hiding a function. When "v" is not NULL we might be
diff --git a/src/nvim/version.c b/src/nvim/version.c
index a664016fb6..d9d58edab2 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -220,7 +220,7 @@ static int included_patches[] = {
//301,
//300,
//299,
- //298,
+ 298,
//297,
//296,
//295,