diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-13 21:26:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-13 21:26:56 +0100 |
commit | ec792290eb902e01c9edfc0cb71e5235833df56a (patch) | |
tree | aaa4b194de4ad2427bae768a6a4a5fabfc1b7ca5 /src | |
parent | fffdf4754f4fd789c64596bdd9ea069725e63784 (diff) | |
download | vim-git-ec792290eb902e01c9edfc0cb71e5235833df56a.tar.gz |
patch 8.2.2143: Vim9: dead code in compiling :unletv8.2.2143
Problem: Vim9: dead code in compiling :unlet.
Solution: Don't check for "!" a second time.
Diffstat (limited to 'src')
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/version.c b/src/version.c index be7e4f088..be8c64a5e 100644 --- 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 index 3fae25e11..86d3260d9 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -5993,7 +5993,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx) // 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 *eap, cctx_T *cctx) 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; } |