Patch 8.2.2553
Problem:    Vim9: Cannot put "|" after "{".
Solution:   Add the EX_TRLBAR flag. (issue #7904)
Files:      src/ex_cmds.h, src/ex_eval.c


*** ../vim-8.2.2552/src/ex_cmds.h       2021-02-26 21:56:42.213008615 +0100
--- src/ex_cmds.h       2021-02-26 22:06:37.302421204 +0100
***************
*** 1820,1826 ****
        
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
        ADDR_LINES),
  EXCMD(CMD_block,      "{",            ex_block,  // not found normally
!       0,
        ADDR_NONE),
  EXCMD(CMD_endblock,   "}",            ex_endblock,
        EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
--- 1820,1826 ----
        
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
        ADDR_LINES),
  EXCMD(CMD_block,      "{",            ex_block,  // not found normally
!       EX_TRLBAR,
        ADDR_NONE),
  EXCMD(CMD_endblock,   "}",            ex_endblock,
        EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
*** ../vim-8.2.2552/src/ex_eval.c       2021-01-27 21:37:04.731140094 +0100
--- src/ex_eval.c       2021-02-26 22:12:44.708854209 +0100
***************
*** 912,918 ****
  enter_block(cstack_T *cstack)
  {
      ++cstack->cs_idx;
!     if (in_vim9script())
      {
        scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid);
  
--- 912,918 ----
  enter_block(cstack_T *cstack)
  {
      ++cstack->cs_idx;
!     if (in_vim9script() && current_sctx.sc_sid > 0)
      {
        scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid);
  
*** ../vim-8.2.2552/src/version.c       2021-02-26 21:56:42.213008615 +0100
--- src/version.c       2021-02-26 22:21:05.666732179 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2553,
  /**/

-- 
Any sufficiently advanced technology is indistinguishable from magic.
                                        Arthur C. Clarke
Any sufficiently advanced bug is indistinguishable from a feature.
                                        Rich Kulawiec

 /// Bram Moolenaar -- b...@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    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202102262140.11QLecpZ274427%40masaka.moolenaar.net.

Reply via email to