Mercurial > vim
changeset 23195:75f35ae990ac v8.2.2143
patch 8.2.2143: Vim9: dead code in compiling :unlet
Commit: https://github.com/vim/vim/commit/ec792290eb902e01c9edfc0cb71e5235833df56a
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Dec 2020 21:30:05 +0100 |
parents | 2eea20c97f6f |
children | 88a6a5655af0 |
files | src/version.c src/vim9compile.c |
diffstat | 2 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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; }