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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202012132027.0BDKRLtB3185167%40masaka.moolenaar.net.

Raspunde prin e-mail lui