commit | 13e45d14ba7f590fb243c041bc45e6d4d47c8432 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jun 26 13:28:35 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jun 26 13:28:35 2021 +0200 |
tree | 6b877e3d3731885affc8b39f4fc1a58140cae745 | |
parent | ce024c3e20839465dc8c8f79dcccc5414dd8c506 [diff] [blame] |
patch 8.2.3053: Vim9: cannot assign to @@ in :def function Problem: Vim9: cannot assign to @@ in :def function Solution: Handle '@' like '"'.
diff --git a/src/vim9compile.c b/src/vim9compile.c index bb5ea97..b8a8794 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -5854,7 +5854,8 @@ } else if (*name == '@') { - if (!valid_yank_reg(name[1], FALSE) || name[1] == '.') + if (name[1] != '@' + && (!valid_yank_reg(name[1], FALSE) || name[1] == '.')) { emsg_invreg(name[1]); return FAIL;