changeset 7250:99476f1aaacd v7.4.933

commit https://github.com/vim/vim/commit/e4eda3bc7157932b0bf380fd3fdc1ba8f4438b60 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 21 16:28:50 2015 +0100 patch 7.4.933 Problem: Crash when using longest completion match. Solution: Fix array index.
author Christian Brabandt <cb@256bit.org>
date Sat, 21 Nov 2015 16:30:05 +0100
parents 56c48d316ed0
children 43e3f92302db
files src/ex_getln.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    933,
+/**/
     932,
 /**/
     931,