To: vim_dev@googlegroups.com Subject: Patch 8.2.2143 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///