Patch 9.0.0420 (after 9.0.0419)
Problem:    Function went missing.
Solution:   Add the function back.
Files:      src/vim9cmds.c


*** ../vim-9.0.0419/src/vim9cmds.c      2022-09-08 20:48:39.972666986 +0100
--- src/vim9cmds.c      2022-09-08 19:35:10.052887004 +0100
***************
*** 1685,1690 ****
--- 1685,1711 ----
  }
  
  /*
+  * Get the local variable index for deferred function calls.
+  * Reserve it when not done already.
+  * Returns zero for failure.
+  */
+     int
+ get_defer_var_idx(cctx_T *cctx)
+ {
+     dfunc_T   *dfunc = ((dfunc_T *)def_functions.ga_data)
+                                              + cctx->ctx_ufunc->uf_dfunc_idx;
+     if (dfunc->df_defer_var_idx == 0)
+     {
+       lvar_T *lvar = reserve_local(cctx, (char_u *)"@defer@", 7,
+                                                           TRUE, &t_list_any);
+       if (lvar == NULL)
+           return 0;
+       dfunc->df_defer_var_idx = lvar->lv_idx + 1;
+     }
+     return dfunc->df_defer_var_idx;
+ }
+ 
+ /*
   * Compile "defer func(arg)".
   */
      char_u *
*** ../vim-9.0.0419/src/version.c       2022-09-08 19:51:39.734308338 +0100
--- src/version.c       2022-09-08 20:44:54.744854615 +0100
***************
*** 705,706 ****
--- 705,708 ----
  {   /* Add new patch number below this line */
+ /**/
+     420,
  /**/

-- 
I'm not familiar with this proof, but I'm aware of a significant
following of toddlers who believe that peanut butter is the solution
to all of life's problems...            -- Tim Hammerquist

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/20220908195136.660B71C0B04%40moolenaar.net.

Raspunde prin e-mail lui