mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.2103: Vim9: unreachable code
Problem: Vim9: unreachable code. Solution: Remove the code to prepend s: to the variable name
This commit is contained in:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2103,
|
||||||
/**/
|
/**/
|
||||||
2102,
|
2102,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -5179,19 +5179,9 @@ generate_store_var(
|
|||||||
if (scriptvar_idx < 0)
|
if (scriptvar_idx < 0)
|
||||||
{
|
{
|
||||||
char_u *name_s = name;
|
char_u *name_s = name;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
// Include s: in the name for store_var()
|
// "s:" is included in the name.
|
||||||
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,
|
r = generate_OLDSCRIPT(cctx, ISN_STORES, name_s,
|
||||||
scriptvar_sid, type);
|
scriptvar_sid, type);
|
||||||
if (name_s != name)
|
if (name_s != name)
|
||||||
|
Reference in New Issue
Block a user