Patch 8.2.2103
Problem: Vim9: unreachable code.
Solution: Remove the code to prepend s: to the variable name
Files: src/vim9compile.c
*** ../vim-8.2.2102/src/vim9compile.c 2020-12-06 16:03:51.605729875 +0100
--- src/vim9compile.c 2020-12-06 20:12:33.266632443 +0100
***************
*** 5179,5197 ****
if (scriptvar_idx < 0)
{
char_u *name_s = name;
! int r;
! // Include s: in the name for store_var()
! if (name[1] != ':')
! {
! int len = (int)STRLEN(name) + 3;
!
! name_s = alloc(len);
! if (name_s == NULL)
! name_s = name;
! else
! vim_snprintf((char *)name_s, len, "s:%s", name);
! }
r = generate_OLDSCRIPT(cctx, ISN_STORES, name_s,
scriptvar_sid, type);
if (name_s != name)
--- 5179,5187 ----
if (scriptvar_idx < 0)
{
char_u *name_s = name;
! int r;
! // "s:" is included in the name.
r = generate_OLDSCRIPT(cctx, ISN_STORES, name_s,
scriptvar_sid, type);
if (name_s != name)
*** ../vim-8.2.2102/src/version.c 2020-12-06 18:50:32.946220039 +0100
--- src/version.c 2020-12-06 20:12:12.030700706 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2103,
/**/
--
BEDEVERE: Oooooh!
LAUNCELOT: No "Aaaaarrrrrrggghhh ... " at the back of the throat.
BEDEVERE: No! "Oooooh!" in surprise and alarm!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///