diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-19 19:01:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-19 19:01:43 +0200 |
commit | 3b74b6b4bb9a022f8c6f6e544360d628e10df1ab (patch) | |
tree | 4c991455edb87799f3f8ea302886164c179f2fe8 /src/vim9script.c | |
parent | c785b9a7f471f12825a1d6d2041c144c74242b7c (diff) | |
download | vim-git-3b74b6b4bb9a022f8c6f6e544360d628e10df1ab.tar.gz |
patch 8.2.1012: Vim9: cannot declare single character script variablesv8.2.1012
Problem: Vim9: cannot declare single character script variables.
Solution: Don't see "b:", "s:", etc. as namespace. Fix item size of
sn_var_vals.
Diffstat (limited to 'src/vim9script.c')
-rw-r--r-- | src/vim9script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9script.c b/src/vim9script.c index 6c4cbc430..30c269af8 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -471,7 +471,7 @@ vim9_declare_scriptvar(exarg_T *eap, char_u *arg) } for (p = arg + 1; *p != NUL && eval_isnamec(*p); MB_PTR_ADV(p)) - if (*p == ':' && p != arg + 1) + if (*p == ':' && (VIM_ISWHITE(p[1]) || p != arg + 1)) break; if (*p != ':') |