Patch 8.2.2865 (after 8.2.2864)
Problem:    Skipping over function body fails.
Solution:   Do not define the function when skipping.
Files:      src/userfunc.c


*** ../vim-8.2.2864/src/userfunc.c      2021-05-18 11:47:31.884191326 +0200
--- src/userfunc.c      2021-05-18 13:37:35.985264203 +0200
***************
*** 4014,4020 ****
      // Save the starting line number.
      sourcing_lnum_top = SOURCING_LNUM;
  
!     if (get_function_body(eap, &newlines, line_arg, &line_to_free) == FAIL)
        goto erret;
  
      /*
--- 4014,4023 ----
      // Save the starting line number.
      sourcing_lnum_top = SOURCING_LNUM;
  
!     // Do not define the function when getting the body fails and when
!     // skipping.
!     if (get_function_body(eap, &newlines, line_arg, &line_to_free) == FAIL
!           || eap->skip)
        goto erret;
  
      /*
*** ../vim-8.2.2864/src/version.c       2021-05-18 11:47:31.884191326 +0200
--- src/version.c       2021-05-18 13:38:44.428947971 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2865,
  /**/

-- 
The psychic said, "God bless you."  I said, "I didn't sneeze."  She
looked deep into my eyes and said, "You will, eventually."  And, damn
if she wasn't right.  Two days later, I sneezed.  --Ellen Degeneres

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202105181141.14IBfVwf4039849%40masaka.moolenaar.net.

Raspunde prin e-mail lui