comparison src/vim9compile.c @ 25032:123590c942b7 v8.2.3053

patch 8.2.3053: Vim9: cannot assign to @@ in :def function Commit: https://github.com/vim/vim/commit/13e45d14ba7f590fb243c041bc45e6d4d47c8432 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 26 13:28:35 2021 +0200 patch 8.2.3053: Vim9: cannot assign to @@ in :def function Problem: Vim9: cannot assign to @@ in :def function Solution: Handle '@' like '"'.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Jun 2021 13:30:04 +0200
parents 214fddf4c765
children 8d660d1cca8d
comparison
equal deleted inserted replaced
25031:e52b5b8cfee4 25032:123590c942b7
5852 *dest = dest_env; 5852 *dest = dest_env;
5853 *type = &t_string; 5853 *type = &t_string;
5854 } 5854 }
5855 else if (*name == '@') 5855 else if (*name == '@')
5856 { 5856 {
5857 if (!valid_yank_reg(name[1], FALSE) || name[1] == '.') 5857 if (name[1] != '@'
5858 && (!valid_yank_reg(name[1], FALSE) || name[1] == '.'))
5858 { 5859 {
5859 emsg_invreg(name[1]); 5860 emsg_invreg(name[1]);
5860 return FAIL; 5861 return FAIL;
5861 } 5862 }
5862 *dest = dest_reg; 5863 *dest = dest_reg;