# HG changeset patch # User Bram Moolenaar # Date 1607891405 -3600 # Node ID 75f35ae990ac378fb830d7a9c53fd3cd77525f9c # Parent 2eea20c97f6f1acaab6630f29f83a16123112641 patch 8.2.2143: Vim9: dead code in compiling :unlet Commit: https://github.com/vim/vim/commit/ec792290eb902e01c9edfc0cb71e5235833df56a Author: Bram Moolenaar Date: Sun Dec 13 21:26:56 2020 +0100 patch 8.2.2143: Vim9: dead code in compiling :unlet Problem: Vim9: dead code in compiling :unlet. Solution: Don't check for "!" a second time. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2143, +/**/ 2142, /**/ 2141, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -5993,7 +5993,7 @@ compile_assignment(char_u *arg, exarg_T // for "[var, var] = expr" drop the "expr" value if (var_count > 0 && !semicolon) { - if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL) + if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL) goto theend; } @@ -6074,12 +6074,6 @@ compile_unletlock(char_u *arg, exarg_T * 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; }