mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1289: crash when using a custom completion function
Problem: Crash when using a custom completion function. Solution: Initialize all of the expand_T. (closes #6532)
This commit is contained in:
parent
13e12b8a3c
commit
c841afff6a
@ -494,18 +494,9 @@ ExpandOne(
|
||||
void
|
||||
ExpandInit(expand_T *xp)
|
||||
{
|
||||
xp->xp_pattern = NULL;
|
||||
xp->xp_pattern_len = 0;
|
||||
CLEAR_POINTER(xp);
|
||||
xp->xp_backslash = XP_BS_NONE;
|
||||
#ifndef BACKSLASH_IN_FILENAME
|
||||
xp->xp_shell = FALSE;
|
||||
#endif
|
||||
xp->xp_numfiles = -1;
|
||||
xp->xp_files = NULL;
|
||||
#if defined(FEAT_EVAL)
|
||||
xp->xp_arg = NULL;
|
||||
#endif
|
||||
xp->xp_line = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2425,7 +2416,7 @@ expand_shellcmd(
|
||||
# if defined(FEAT_EVAL)
|
||||
/*
|
||||
* Call "user_expand_func()" to invoke a user defined Vim script function and
|
||||
* return the result (either a string or a List).
|
||||
* return the result (either a string, a List or NULL).
|
||||
*/
|
||||
static void *
|
||||
call_user_expand_func(
|
||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1289,
|
||||
/**/
|
||||
1288,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user