l
Patch 8.2.2513 (after 8.2.2511)
Problem:    Vim9: missing part of :vim9cmd change.
Solution:   Use command modifier in in_vim9script().
Files:      src/vim9script.c


*** ../vim-8.2.2512/src/vim9script.c    2021-02-11 21:19:30.522147936 +0100
--- src/vim9script.c    2021-02-13 21:55:54.561391301 +0100
***************
*** 23,29 ****
      // Do not go up the stack, a ":function" inside vim9script uses legacy
      // syntax.  "sc_version" is also set when compiling a ":def" function in
      // legacy script.
!     return current_sctx.sc_version == SCRIPT_VERSION_VIM9;
  }
  
  /*
--- 23,30 ----
      // Do not go up the stack, a ":function" inside vim9script uses legacy
      // syntax.  "sc_version" is also set when compiling a ":def" function in
      // legacy script.
!     return current_sctx.sc_version == SCRIPT_VERSION_VIM9
!               || (cmdmod.cmod_flags & CMOD_VIM9CMD);
  }
  
  /*
*** ../vim-8.2.2512/src/version.c       2021-02-14 13:17:16.992007963 +0100
--- src/version.c       2021-02-14 13:29:47.525265028 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2513,
  /**/

-- 
ARTHUR:        A scratch?  Your arm's off!
BLACK KNIGHT:  No, it isn't.
ARTHUR:        Well, what's that then?
BLACK KNIGHT:  I've had worse.
                                  The Quest for the Holy Grail (Monty Python)

 /// 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/202102141230.11ECUb0n1398755%40masaka.moolenaar.net.

Raspunde prin e-mail lui