]> granicus.if.org Git - vim/commitdiff
patch 7.4.933 v7.4.933
authorBram Moolenaar <Bram@vim.org>
Sat, 21 Nov 2015 15:28:50 +0000 (16:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 21 Nov 2015 15:28:50 +0000 (16:28 +0100)
Problem:    Crash when using longest completion match.
Solution:   Fix array index.

src/ex_getln.c
src/version.c

index 33d612bfa8541e05ceaea40ae067f8be8bec6571..0aeb4b8c8d48467db519518d13bd47db3077c294 100644 (file)
@@ -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
index 30efcab42d027ca6ac7a7d40d3e6c8a4a507e856..f43cad884f95a3e7453b4c3e11f3fee72765716a 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    933,
 /**/
     932,
 /**/