From: Bram Moolenaar Date: Sat, 21 Nov 2015 15:28:50 +0000 (+0100) Subject: patch 7.4.933 X-Git-Tag: v7.4.933 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4eda3bc7157932b0bf380fd3fdc1ba8f4438b60;p=vim patch 7.4.933 Problem: Crash when using longest completion match. Solution: Fix array index. --- diff --git a/src/ex_getln.c b/src/ex_getln.c index 33d612bfa..0aeb4b8c8 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -3704,7 +3704,7 @@ ExpandOne(xp, str, orig, options, mode) } else #endif - c0 = xp->xp_files[i][len]; + c0 = xp->xp_files[0][len]; for (i = 1; i < xp->xp_numfiles; ++i) { #ifdef FEAT_MBYTE diff --git a/src/version.c b/src/version.c index 30efcab42..f43cad884 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 933, /**/ 932, /**/