Skip to content

Commit e4eda3b

Browse files
committed
patch 7.4.933
Problem: Crash when using longest completion match. Solution: Fix array index.
1 parent 8f08dab commit e4eda3b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/ex_getln.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3704,7 +3704,7 @@ ExpandOne(xp, str, orig, options, mode)
37043704
}
37053705
else
37063706
#endif
3707-
c0 = xp->xp_files[i][len];
3707+
c0 = xp->xp_files[0][len];
37083708
for (i = 1; i < xp->xp_numfiles; ++i)
37093709
{
37103710
#ifdef FEAT_MBYTE

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
933,
744746
/**/
745747
932,
746748
/**/

0 commit comments

Comments
 (0)