Patch 8.2.2143

3 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 13, 2020, 3:27:30 PM12/13/20
to vim...@googlegroups.com

Patch 8.2.2143
Problem: Vim9: dead code in compiling :unlet.
Solution: Don't check for "!" a second time.
Files: src/vim9compile.c


*** ../vim-8.2.2142/src/vim9compile.c 2020-12-13 18:44:39.741837064 +0100
--- src/vim9compile.c 2020-12-13 21:23:47.958559249 +0100
***************
*** 5993,5999 ****
// for "[var, var] = expr" drop the "expr" value
if (var_count > 0 && !semicolon)
{
! if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL)
goto theend;
}

--- 5993,5999 ----
// for "[var, var] = expr" drop the "expr" value
if (var_count > 0 && !semicolon)
{
! if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL)
goto theend;
}

***************
*** 6074,6085 ****
return NULL;
}

- if (*p == '!')
- {
- p = skipwhite(p + 1);
- eap->forceit = TRUE;
- }
-
ex_unletlock(eap, p, 0, GLV_NO_AUTOLOAD, compile_unlet, cctx);
return eap->nextcmd == NULL ? (char_u *)"" : eap->nextcmd;
}
--- 6074,6079 ----
*** ../vim-8.2.2142/src/version.c 2020-12-13 21:16:52.348872670 +0100
--- src/version.c 2020-12-13 21:26:37.369503888 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2143,
/**/

--
This message contains 78% recycled characters.

/// 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 ///
Reply all
Reply to author
Forward
0 new messages