mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2865: skipping over function body fails
Problem: Skipping over function body fails. Solution: Do not define the function when skipping.
This commit is contained in:
@@ -4014,7 +4014,10 @@ define_function(exarg_T *eap, char_u *name_arg)
|
|||||||
// Save the starting line number.
|
// Save the starting line number.
|
||||||
sourcing_lnum_top = SOURCING_LNUM;
|
sourcing_lnum_top = SOURCING_LNUM;
|
||||||
|
|
||||||
if (get_function_body(eap, &newlines, line_arg, &line_to_free) == FAIL)
|
// 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;
|
goto erret;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2865,
|
||||||
/**/
|
/**/
|
||||||
2864,
|
2864,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user