From e4eda3bc7157932b0bf380fd3fdc1ba8f4438b60 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 21 Nov 2015 16:28:50 +0100 Subject: patch 7.4.933 Problem: Crash when using longest completion match. Solution: Fix array index. --- src/ex_getln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_getln.c') 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 -- cgit v1.2.1